Sunday, July 01, 2007

Stop Page Processing in JSP

In JSP, we use the return statement to stop all processing on the page. However, if we were to just use return; then we will encounter an error saying "Statement is not reachable". To counter this problem, we use the below
<%
if (1==1) return;
%>

Blog Archive