When I execute the following code with JRun 2.3, the results look like what
I would expect from dispatcher.include(), not dispatcher.forward().

MyServlet code:

    .....
  RequestDispatcher dispatcher =
getServletContext().getRequestDispatcher("/test.jsp");
  dispatcher.forward(req, res);
    .....

instead of seeing the following URL that I would expect:

http://127.0.0.1/test.jsp

... I get this URL:

http://127.0.0.1/servlet/MyServlet

I am not doing anything like writing output to the response PrintWriter. The
servlet MyServlet is totally bare boned and only calls the jsp with
request.forward(). I expected to see results similar to sendRedirect(). Is
this right?

Thanks

Bruce

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to