jsp & struts, url rewrite problem

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Johan_2003
Advanced
Advanced
Posts: 11
Joined: Tue Nov 18, 2003 4:43 pm

jsp & struts, url rewrite problem

Post by Johan_2003 »

Hi,

I'm using jsp & struts to build my menu. I'm using url rewrite (html:rewrite) for building my url's. When my users are blocking cookies automaticly a session id is added to the url like this:
/iwt/algemeen/brochures.jsp;jsessionid=A6C2740FE57FAF195DE34027B96DA3AB?topNav=student

My problem is that the menu system recognizes the ; as the end of the url and so the session id and other information is lost when a user uses the menu.

Is there a workaround for this problem?

Johan
ssadler
Beginner
Beginner
Posts: 1
Joined: Fri Sep 26, 2003 9:15 pm

HttpServletResponse.encodeURL

Post by ssadler »

Run your URL thru HttpServletResponse.encodeURL() and let is escape all of the special-character nastiness.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

I only work on the front-end but it was suggested to me to replace & with ; in urls, appears to me here that neither is perfect. Can anyone tell me is ; really better?

TIA
maz
Post Reply