This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat + Struts no jsessionid cookie.

 
Torben Riis
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...
I realy hope someone can help me! :-)
Problem:
I have just finnished a web project using Struts. It deploys fine i WebSphere 5, but when it is deployed from Tomcat every link has been rewritten so it contains the jsessionid (URL rewriting).
Tests:
If I create a test application using ordinary jsp or selvlets (no Struts) the jsessionid appears fine as a cookie, and no URL rewriting has been done by Tomcat. The same thing happens if I deploy the cookie example (One of the examples contained in the Tomcat install package).
But if I configure the Struts ActionServlet in the web.xml file, Tomcat rewrites every link. I have tested this on Tomcat 4.1.18, 4.1.27 and 5.0.9.
Even if I try to deploy the struts-example.war file from the jakarta-struts-1.1.zip package the jsessionid cookie is not found, and Tomcat rewrites every link!
Question:
Can someone tell me why Tomcat always uses URL rewriting, when your web application are using Struts? And is there any solutions to get around this?

Kind regard
Torben Riis
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic