aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Proper technique for forwarding servlets" Watch "Proper technique for forwarding servlets" New topic
Author

Proper technique for forwarding servlets

Darryl Failla
Ranch Hand

Joined: Oct 16, 2001
Posts: 128
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
else
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,
Thambi
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Proper technique for forwarding servlets