return statement after response.sendRedirect()
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   zorro_francisco
Posted On:   Monday, January 14, 2008 10:59 PM

Hi,

Is it always recommended to place a return statement after response.sendRedirect() line?


i.e.





if( done ){


&nbsp response.sendRedirect("result.jsp");


&nbsp return;


}






thanks!

Re: return statement after response.sendRedirect()

Posted By:   Anonymous  
Posted On:   Wednesday, January 23, 2008 03:46 PM

The return there is not required and necessary.
The purpose of sendRedirect itself is to direct you to another page.
About | Sitemap | Contact