"Jeff Hoffmann" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>I have a webapp that that's being accessed from Apache through mod_jk. When 
>the requests come to Apache, they get sent through mod_rewrite to add the 
>appropriate webapp context path in front of the rest of the request so it 
>can get sent through mod_jk to be processed.  When I create links in the 
>web pages that get returned, usually they don't have the context path in 
>them because I'm having mod_rewrite handle that. The problem is when I try 
>to do an encodeURL() on these links, it doesn't do anything (I'm assuming 
>because it thinks the link is outside of the webapp and therefore shouldn't 
>have the session info appended). I've already handled the cookie-based 
>session handling by setting up cross-context cookies.  What I'm wondering 
>is if there's a way to force the URL-rewrite session handling to work in 
>this situation?
>

Something like:
    <a href="mypage.jsp;jsessionid=<%= session.getId() %>">Go to My 
Page!</a>

should probably work.  I'm sure that you can think up more variants on the 
theme to suit your purpose.


> -- 
> Jeff Hoffmann
> [EMAIL PROTECTED] 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to