----- 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 the username and password are correct. Where can I find some examples? Thanks, Michael I teach this in my Graphical User Interface Programming class: (http://www.wiu.edu/users/mflll/CS412g/n3x.xml.pdf) URL url = new URL("http://toolman.wiu.edu:14096/servlet/OurData"); InputStream openStream = url.openStream(); InputStreamReader r = new InputStreamReader(openStream); char buf[] = new char[10000]; r.read(buf,0,1); One just starts the servlet by invoking it with a URL and reading from the stream. I may have seen this in the Servlet Programming by Jason Hunter and William Crawford. Dr. Laurence Leff Western Illinois University, Macomb IL 61455 ||(309) 298-1315 Stipes 447 Assoc. Prof. of Computer Sci. Pager: 309-367-0787 FAX: 309-298-2302 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org