This blog is having some sort of guidelines about below technologies. Hoping this would be helpful to the people who want to gain knowledge on open sources web development.
How to restrict page errors display in the JSP page?
Set "Errorpage" attribute of PAGE directory to the name of the error page
<< Errorpage="error.jsp" >> in your JSP page.
Then in the error JSP page set "isErrorpage=TRUE".
When an error occurs in your JSP page, it will automatically call the error page.