Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to remove jsessionid from URL

843835Jun 7 2002 — edited Dec 10 2003
I developed a jsp/servlet application. When the user logs in, the URL looks like:

https://host/servlet/MainServlet;jsessionid=8f274f3a77b54e2c952b92fa13514a8a
and
https://host/jsp/DisplayTmpRecords.jsp?choice=update&tableType=vtemp;jsessionid=69a5a3af0bd6433c8c978cb455bb868a

in the first case, it is okay. But in the second case, while I assigned "vtemp" to the parameter tableType, what I actually got is "vtemp;jsessionid=69a5a3af0bd6433c8c978cb455bb868a" if I am using "String tableType = request.getParameter("tableType")". This is bad since I have to additonally parsing to get correct value.

This does not happen on tomcat, but it happens on "Oracle 9i Application Server".
How to remove the extra stuff from the URL?

Thanks.

Jingzhi
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 7 2004
Added on Jun 7 2002
2 comments
370 views