Hello,
I have set up a global-exceptions exception like so:
<global-exceptions>
<exception key="global.error.database.error" scope="session"
type="com.mb.purcell.exception.DatabaseException" />
<exception key="global.error.invalid.login" scope="session"
type="com.mb.purcell.exception.InvalidLoginException" />
<exception key="error.general" type="java.lang.Exception"
path="/error.jsp" />
</global-exceptions>
The last one points to /error.jsp is from chapter 9 of the cookbook. I wanted
to try an catch all exceptions with that while developing. Problem is, I keep
getting the HTTP status 500- in the browser, and not the error.jsp page?
Why is this? do I need to throw this an Exception whenever something may happen?
Here is what I am getting instead of the page, in my browser:
HTTP Status 500 -
Exception report
java.lang.NullPointerException
com.mb.purcell.app.ExtendedRequestProcessor.processPreprocess(ExtendedRequestProcessor.java:65)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:186)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Thanks,
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]