• Post Reply Bookmark Topic Watch Topic
  • New Topic

Request Dispatcher Problem  RSS feed

Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folk
I'm pretty new to Servlets and JSP an have a problem with the requestDispatcher.
I'm currently developing a WAP-Application where my JSP's deliver WML-Syntax.
Here a little Sample of one of my jsp's:

The messageBean is only used for displaying error messages (it has nothing to do with the EJB MessageBean)
As you can see, in case a messageBean exists a error-message will be displayed for 5 seconds and then forward to the Anchor "main". (in the url, it looks like this: .../myServlet#main)
But here's the problem:
I use a requestDispatcher to forward to a JSP. During this forward, the SessionID (../myjsp;jsession=ABCDEFGH) in the URL gets removed (as you can see, i use URLRewriting to store the session ID), but not the ";", so the response URL looks like this: ".../myServlet;".
Now in case of an error, the messageBean content gets displayed properly, but on the forward to the main screen the problem occours that the Page: ".../myServlet;#main" can't be found.
Does anyone know how to remove the ";" from the URL during dispatch.

I hope you understand my problem, even if my english is very poor and i'm pretty new to J2EE. :roll:
Thanks in advance
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!