Originally posted by Harpreet Hira:
To send the request to another resource(JSP, servlet or HTML) with in the SAME Web Application you should use RequestDispatcher.forward().
Originally posted by Bear Bibeault:
The "rule" should be: use a forward if the current request needs to be transferred to the new resource, use a redirect if not.
Originally posted by rathi ji:
What is 'new resource' here??
Originally posted by Harpreet Hira:
this can be much more efficiently accomplished with the RequestDispatcher.
Efficiency should take a back-seat to what makes the most sense for the application.
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |