How to prevent change of URL when using forward function of RequestDispatcher.
0 posts in topic
Flat View  Flat View

Posted By:   Sad_Guy
Posted On:   Wednesday, November 28, 2001 05:34 PM

Say, my JSP page is in my localhost and the url is http://localhost:8080/myproj/index.jsp . After I forward the page to a servlet, the URL changes to http://localhost:8080/myproj/servlet/myServlet . This change in URL will affect some links within my page such as stylesheet.

How can I maintain the original JSP page URL? I've heard and tried using request.getRequestURL() but it is not retrieving the original JSP URL as expected. Why is that so?

About | Sitemap | Contact