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

sendRedirect() method with IllegalStateException

flora kalisa
Greenhorn

Joined: Sep 08, 2012
Posts: 2
Hi,

I am doing this in my doGet method:



why I am not getting IllegalStateException ? how can I get one ?
I am preparing for SCWCD exams

it is compiling and I am redirected to myUrl

Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1661
    
  25

Hi Flora,

Have you checked the following discussion: sendRedirect-not-throwing-IllegalStateException

Regards,
Frits
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: sendRedirect() method with IllegalStateException