Happy Monday everyone. I have a question for you. Hopefully it
doesn't go too far off track.
When I'm using the struts url tag (struts 2) to generate a link, I
get a non standard url parameter, ";jsessionid" appended on the first
visit with a new browser session. It seems that this occurs with a
call to the HttpServletResponse.encodeURL method.
I get a URL like this (note the semicolon):
/context/namespace/page.action;jsessionid=xxxx
instead of what I would hope for (question mark replaces the semicolon):
/context/namespace/page.action?jsessionid=xxxx
The real problem occurs when I attempt to serve the page through
Apache httpd and mod_jk (running on a httpd / mod_jk / tomcat
environment). I'm guessing that Apache httpd sees the request as a
type of ".action;jsessionid=xxxxxxx" instead if a type ".action" and
serves the resulting content (rendered correctly by tomcat) as plain
text. The ".action" type has been added to the httpd.conf with the
addType directive. All of the session stuff is handled normally with
tomcat.
The question:
Ultimately, how can I get Apache httpd to display the content as
"text/html" when I have a "jsessionid" appended to urls?
Is there something I can configure with httpd.conf?
Is there something I can configure with web.xml?
Is there a way to make the call to the HttpServletResponse.encodeURL
use a question mark instead of a semicolon?
Thanks for your help!
Eric Rank
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)