Aborting Processing
1 posts in topic
Flat View  Flat View

Posted By:   Muhammad_Asif
Posted On:   Wednesday, March 6, 2002 05:39 AM

In a servelet, Based on some condtion i dispatch request using requestDispatcher.forward() to an error page. But i think problem with this method is that statments below this forward statment also work and servlet throws error "can not forward request when response has been committed".

Is there any way so that i can abort further processing after request has been dispatched.

thx for your time.

Re: Aborting Processing

Posted By:   Anonymous  
Posted On:   Wednesday, March 6, 2002 05:42 AM

Add a return after the forward() call.


About | Sitemap | Contact