✔ JSP CHAPTERS:-
1. JSP Overview
2. JSP Hello World Example
3. JSP Scriplet Tag
4. JSP Declaration Tag
5. JSP Expression Tag
6. JSP Comment Tag
7. JSP Directives
8. JSP Implicit Objects
9. JSP Action Tags
10. Exception Handling
11. JSP Expression Language
1. JSP Overview
2. JSP Hello World Example
3. JSP Scriplet Tag
4. JSP Declaration Tag
5. JSP Expression Tag
6. JSP Comment Tag
7. JSP Directives
8. JSP Implicit Objects
9. JSP Action Tags
10. Exception Handling
11. JSP Expression Language
JSP Action Tags :Previous Next: Expression Language
Exception handling example using
Exception handling is a mechanism to handle run time errors, so that normal flow of the program can be maintained.
Ways of exception handling in JSP:
- 1. Using page directive (errorPage and isErrorPage attributes).
- 2. Using
attribute of web.xml.
Exception handling example using errorPage and isErrorPage attributes:
welcome.jsp
errorPage.jsp
web.xml
Output:
Exception handling example using attribute:
welcome.jsp
errorPage.jsp
web.xml