Search This Blog

Google Analytics

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;
%>

5 comments:

  1. How to insert code snippets on blogger template?? Plz help me at:
    ikazi@trashmail.net

    ReplyDelete
  2. I will be making a post on how to insert code snippets in a week's time.

    ReplyDelete
  3. i'm a complete newbie
    what is snippet?

    ReplyDelete
  4. Snippet is a small piece of anything and in this case, is a programming term for a small region of re-usable source code.

    Cheers
    hongjun

    ReplyDelete

Do provide your constructive comment. I appreciate that.

Popular Posts