This week's book / license giveaways are in the JDBC and Relational Databases and Java in General forums.
We're giving away four copies each of PostGIS in Action and Java Advanced Topics Training and have the authors on-line!
See this thread and this one for details.
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


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
Saloon Keeper

Joined: Apr 07, 2010
Posts: 1965
    
  39

Hi Angy

Check this thread.

Regards,
Frits
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt about sendRedirect() and RequestDispatcher.forward()