How to call a specific method in a servlet from another servlet
843841Jan 26 2007 — edited Jan 29 2007Hi peeps, this post is kinda linked to my other thread but more direct !!
I need to call a method from another servlet and retrieve info/objects from that method and manipulate them in the originating servlet .... how can I do it ?
Assume the originating servlet is called Control and the servlet/method I want to access is DAO/login.
I can create an object of the DAO class, say newDAO, and access the login method by newDAO.login(username, password). Then how do I get the returned info from the DAO ??
Can I use the RequestDispatcher to INCLUDE the call to the DAO class method "login" ???
Cheers
Kevin