cannot reach servlet from jsp

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top