File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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
It's not a secret anymore!