Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread Michael Stockhausen
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

Re: Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread Laurence L Leff
- Original Message - From: Michael Stockhausen prof.dr.moe...@googlemail.com 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

Re: Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread Ronald Klop
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:

Re: Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 9/20/2010 11:07 AM, Ronald Klop wrote: You can use the RequestDispatcher. RequestDispatcher dispatcher = request.getRequestDispatcher(/userlist); dispatcher.forward(request, response); Of course, you can also issue a redirect to the

RE: Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread Leo Donahue - PLANDEVX
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Howto: call a Servlet from another Servlet (Example)?! -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 9/20/2010 11:07 AM, Ronald Klop wrote: You can use the RequestDispatcher

Re: Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leo, On 9/20/2010 12:55 PM, Leo Donahue - PLANDEVX wrote: I thought that if you were making a request to a UserListServlet and it was restricted to authentication, assuming you use Form Authentication and structure your login form correctly, you

RE: Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread Leo Donahue - PLANDEVX
Chris, -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Howto: call a Servlet from another Servlet (Example)?! -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - From my reading, the OP is doing his own authentication rather than using

Re: Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leo, On 9/20/2010 3:05 PM, Leo Donahue - PLANDEVX wrote: Chris, -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Howto: call a Servlet from another Servlet (Example)?! - From my reading

Re: Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread Pid
On 20/09/2010 16:00, Laurence L Leff wrote: - Original Message - From: Michael Stockhausen prof.dr.moe...@googlemail.com 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

RE: Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread George Sexton
-Original Message- From: Leo Donahue - PLANDEVX [mailto:leodona...@mail.maricopa.gov] Sent: Monday, September 20, 2010 10:56 AM To: 'Tomcat Users List' Subject: RE: Howto: call a Servlet from another Servlet (Example)?! -Original Message- From: Christopher Schultz