aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt about sendRedirect() and RequestDispatcher.forward() 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 » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt about sendRedirect() and RequestDispatcher.forward()" Watch "Doubt about sendRedirect() and RequestDispatcher.forward()" New topic
Author

Doubt about sendRedirect() and RequestDispatcher.forward()

Fabian Angy
Ranch Hand

Joined: Oct 27, 2008
Posts: 90
Hi !

Normally, we can't do a "RequestDispatcher.forward(...,...)" and a "response.sendRedirect()" after a PrintWriter.flush() but with Tomcat, I have no exception.

Is that normal ? :/



or



With these codes, I have a page with "Test" written.

Thanks,

Angy.


SCJP 5
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1696
    
  25

Hi Angy

Check this thread.

Regards,
Frits
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Doubt about sendRedirect() and RequestDispatcher.forward()