Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to call a specific method in a servlet from another servlet

843841Jan 26 2007 — edited Jan 29 2007
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 26 2007
Added on Jan 26 2007
5 comments
325 views