Shared Tutorials

Tutorials Shared by the Internet Community
Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Basic Detail

Exception handling in JSP

Learn how to handle exceptions in Java Server Pages(JSP)
http://beginnersbook.com/2013/11/jsp-exception-handling/
  • Total Hits: 16186

  • Average Rating :
    Tutorial RatingTutorial RatingTutorial RatingTutorial RatingTutorial RatingTutorial Rating

  •  

  • Total Votes: 159 votes

  • Average Rating: 2.91 out of  5

  • Category: JAVA/Misc

  • Set as Favorite

Description:

Exception is nothing but a condition which can cause an abnormal termination of a program flow. Most of the times an exception occurs due to wrong data entered by user. In this tutorial we will see how to handle exceptions in Java Server Pages(JSP). There are two ways to handle exceptions in JSP.

1) Using try-catch block in scriptlet: It is similar to the exception handling in java. Since scriptlet in JSP allows us to use java code in JSP pages, we are free to handle exceptions using try catch blocks in scriptlet.
2) Using exception implicit object: Using scriptlet in JSP is disregarded a long time back so its better to handle exception in this way. We can handle any execption in JSP using exception implicit object.

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 36.48%  58
 Two starsTwo star  Vote LeftVote MiddleVote Right 10.06%  16
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 11.32%  18
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 10.69%  17
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 31.45%  50

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.





Advertisements
Advertisements