Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to stop execution after response.sendRedirect()

843836Jun 16 2005 — edited Jun 18 2005
how to overcome this issue of stopping execution?

if( (token==null) || !(JimSession.isValid(token)))
{
response.sendRedirect("page.jsp"}
}


//code which generates error if token==null


This page throws NullPointerException even when the token == null and the response.sendRedirect code works...


thanks in advance...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 16 2005
Added on Jun 16 2005
5 comments
1,191 views