File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Proper technique for forwarding servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Proper technique for forwarding servlets" Watch "Proper technique for forwarding servlets" New topic

Proper technique for forwarding servlets

Darryl Failla
Ranch Hand

Joined: Oct 16, 2001
Posts: 129
What is the proper technique for a controller servlet to forward to another servlet? For example, in servlet A:
if(x == y)
forward to servlet B
forward to servlet C

Darryl Failla
Sun Certified Java 2 Programmer
Thambi Rajah
Ranch Hand

Joined: Jul 19, 2002
Posts: 36
The following code may be helpful to your question.

Good Luck,
I agree. Here's the link:
subject: Proper technique for forwarding servlets