3 Replies Latest reply on Aug 1, 2002 4:51 AM by Joel Vogt

    Request Dispatcher & Forward

    jbossobj Newbie


      I'm developing a Web Application with the MVC Architecture. So I have a Controller servlet that forwards the requests to the appropriate Servlet or JSP.

      However, I don't like the way the URL behaves in the browser.

      An example:

      Initial Request:
      http://localhost/login the controller does the session management and then forwards the request to the login.jsp

      Second Request:
      http://localhost/list the controller determines that the session is expired and forwards the request back to the login.jsp

      My concern is that the user sees the login.jsp page but the URL seen in the browser is http://localhost/list.

      Apart from using frames how can I get the browser's URL to be in sync with the forwards?