M
marc
hi I need help please.
I've got problems in reaching a servlet from a jsp page.
Here are files:
jsp1.jsp
servlet1.java
servle2.java
1)I call from jsp1 servlet1
then from Servlet1.java I send back the result in request doing:
getServletConfig().getServletContext().getRequestDispatcher(pageToGo).forward(req,
resp);
(i send back a list of names..)
everything woks fine.
2)I need to sort this list of names then I call servlet2, got the
result sorted
and send it back in request doing:
getServletConfig().getServletContext().getRequestDispatcher(pageToGo).forward(req,
resp);
everything still works fine in the jsp page but at this point I cannot
reach neither servlet1 nor servlet2 anymore !! Error 404!
Can anybody help me please?
many thanks,
Marco.
I've got problems in reaching a servlet from a jsp page.
Here are files:
jsp1.jsp
servlet1.java
servle2.java
1)I call from jsp1 servlet1
then from Servlet1.java I send back the result in request doing:
getServletConfig().getServletContext().getRequestDispatcher(pageToGo).forward(req,
resp);
(i send back a list of names..)
everything woks fine.
2)I need to sort this list of names then I call servlet2, got the
result sorted
and send it back in request doing:
getServletConfig().getServletContext().getRequestDispatcher(pageToGo).forward(req,
resp);
everything still works fine in the jsp page but at this point I cannot
reach neither servlet1 nor servlet2 anymore !! Error 404!
Can anybody help me please?
many thanks,
Marco.