What is the difference between iserrorpage and errorpage in jsp




















It sets the boolean value either true or false. You can use the exception object in the JSP page if you set the true value of the attribute otherwise you cannot use the exception object because the default value of the attribute is false. This page show a simple text box in which you have to enter a number and a button which is used for submission the html form and divided the entered number by 0 Zero i.

This page shows the error generated in the calling JSP page because of dividing the entered number by zero or any type of the error when the value of the isErrorPage attribute is set with the true value. There is only one difference between the JSP page error. In this page the value of the attribute is false. Related Articles. Save Article. Improve Article. Like Article.

Last Updated : 28 Sep, String num1. Recommended Articles. Article Contributed By :. Easy Normal Medium Hard Expert. Writing code in comment? Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 9 years, 10 months ago. Active 9 years, 10 months ago. Viewed 2k times. Improve this question. Rehme Rehme 3 3 gold badges 6 6 silver badges 19 19 bronze badges.

Add a comment. Active Oldest Votes. If you set true exception object will be there and you can use it In your case If you want to show the exception you have todo either of the below, 1.

Improve this answer. Selvakumar Ponnusamy Selvakumar Ponnusamy 4, 7 7 gold badges 35 35 silver badges 66 66 bronze badges. Artefacto Artefacto 92k 15 15 gold badges silver badges bronze badges.



0コメント

  • 1000 / 1000