tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DEVAL SHAH" <>
Subject Apache+Tomcat+mod_jk+cookie+Rewrite
Date Fri, 05 Jan 2007 06:58:24 GMT
I notice that because of url rewriting [RewriteRule] my cookie is not being 
passed to Tomcat. This is what I am doing:
I have mod_jk as connector between Tomcat and Apache.
I have an HTML page where I set my cookie - username.
Now If I call the servlet directly from html page then cookie gets passed 
e.g. /MyApp/MyServlet it works well.
But I have added a redirection as follows:

RewriteRule ^/url1$ /MyApp/MyServlet     [PT]

MyApp is a web application in Tomcat.
Now in my HTML page in the onSubmit function I call /url1 instead of servlet 
directly - this redirects to the servlet but the cookie is not set.

How do i go about passing the cookie to the servlet using RewriteRule ?

Thank you in advance

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message