GeeCON Prague 2014*
The moose likes Servlets and the fly likes servlet to servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet to servlet" Watch "servlet to servlet" New topic
Author

servlet to servlet

raghavender rao
Ranch Hand

Joined: Jul 20, 2001
Posts: 45
hi ther,

i want to call Testservlet2 in Testservlet1 using URL Class...
like
URL url = new URL("/servlet/TestServlet2");
(without using res.sendRedirect())
i kn tht i can make use of URL class and AppletContext in Applets to showDocuments ....but i want to kn how do we make use of URL class in servlets to call another servlet....

Rao


Rao<BR>Sun Certified Programmer for the Java��� 2 Platform
 
GeeCON Prague 2014
 
subject: servlet to servlet