Re: Request.getContextPath() after RequestDispatcher.forward()
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, ciAnd7 wrote: | Context ... path=/ / Perhaps you meant: Context path= - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfML38ACgkQ9CaO5/Lv0PCHoACeI3d+Ch7reozfQtAzsVINH6MT TTEAn35opET+yf75yVHO/0FfpnURyDFT =Uouv -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Request.getContextPath() after RequestDispatcher.forward()
Christopher Schultz-2 wrote: ciAnd7 wrote: | Context ... path=/ / Perhaps you meant: Context path= - -chris No. I mean ' path=/ '. I try empty string putting Context / in server.xml, and in app.war/META-INF/context.xml but without success: ROOT application from default host directory executed for '/' path on every virtual host. I found solution with 'path=/ ' and it seems to works except forward() gerContextPath(). -- View this message in context: http://www.nabble.com/Request.getContextPath%28%29-after-RequestDispatcher.forward%28%29-tp15808317p15812168.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Request.getContextPath() after RequestDispatcher.forward()
On Mon, Mar 3, 2008 at 11:49 AM, ciAnd7 [EMAIL PROTECTED] wrote: No. I mean ' path=/ '. Then that's the problem -- it's wrong. The path of the default webapp is the empty string . :-) -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Request.getContextPath() after RequestDispatcher.forward()
On Mon, Mar 3, 2008 at 11:49 AM, ciAnd7 [EMAIL PROTECTED] wrote: No. I mean ' path=/ '. The real problem is refusal to do things the recommended way, which is to name your default webapp ROOT (case sensitive). If you'd simply done that, you wouldn't have to mess around trying to emulate Rube Goldberg. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]