This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi Friends, I want to make use of isErrorPage and errorPage attributes of Page directive in JSP. For that I wrote the following lines of code. But, couldn't able to get the page what I needed. Please, look at the following lines of code and clear my doubt.
In web.xml I added the following lines of code for the error page:- <error-page> <error-code>404</error-code> <location>/error.jsp</location> </error-page>
In the jsp for which error page is needed i mentioned as following in page directive..
<%@ page errorPage="/error.jsp"%>
In the error.jsp:- <%@ page isErrorPage="true" %> <html> <head> <title>Error Page</title> </head> <body> <h2>Your application has generated an error</h2> <h3>Please notify your help desk.</h3> <b>Exception:</b><br> <%= exception.toString() %> </body> </html>
After starting the TOMCAT, I just gave some invalid url. It is showing an blank page. How can i get back from this issue?