You can use the RequestDispatcher.

RequestDispatcher dispatcher = request.getRequestDispatcher("/userlist");
dispatcher.forward(request, response);

Google gives you a lot of examples.

Ronald.



Op maandag, 20 september 2010 16:47 schreef Michael Stockhausen 
<prof.dr.moe...@googlemail.com>:

Hello,

I have create two Servlets (LoginServlet & UserListServlet).
I'm using a JSP for the User credentials. When you press the login-button,
the LoginServlet is called.

I would like to call the UserListServlet, when the username and password are
correct.

How can I call UserListServle from the doGet(...) function of the
LoginServlet. I would like to call a Servlet from another servlet.

Where can I find some examples?

Thanks,
Michael





Reply via email to