Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

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...
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<BR>Sun Certified Programmer for the Java��� 2 Platform
I agree. Here's the link:
subject: servlet to servlet
jQuery in Action, 3rd edition