Hello -

I have jsp page #1 which calls a controllerServlet.  The controllerServlet
then determines the appropriate action based on a parameter.  Processing is
performed and finally another jsp page is selected for display.  Here is an
example:

        mainform.jsp10
                |
                |________controllerServlet
                                                                |
                                                                |
                                |
|
                                |
|
                either                  or               go on to
          go back
/Rsm/nextform.jsp10
                /Rsm/mainform.jsp10


The mainform.jsp10 calls the servlet as follows:
 "<form action = "/servlet/QueryCriteriaServlet" method = POST >

The controllerServlet calls the other jsp page as follows:

                url = "/Rsm/nextform.jsp10";
        rd = sc.getRequestDispatcher(url);
        rd.forward(req, res);
                res.sendRedirect(url);

Initially my URL contains http://ntcp1234/Rsm/mainform.jsp10. which is
correct.

Then,the URL consists of "http://ntcp1234/servlet/controllerServlet" once
the servlet has been invoked and the appropriate jsp page is displayed.

The problem is that from that point on, the browser  thinks I am trying to
invoke a servlet because the URL contains /servlet in it now.  I receive a
"500 Internal Error"  example.jsp10 could not load servlet message and the
URL contains:  http://ntcp1234/servlet/example.jsp10.  I can change my menu
to explicitly have /Rsm/ in front of all references to jsp pages, but I
wonder if this should be handled differently.  I don't understand enough
about this to know if this approach is appropriate.

Can anyone offer assistance/advice on the above?


Thanks in advance for your help!
Geneva

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to