hi,
I have devoloped an application using Struts.I am passing
parameters with the url on many occations in my application.If a
person types any of these url with out the parameters,it will give a
null pointer exception.I have given an error page for all my jsp
pages.But as it is a servlet generated error,instead of redirecting to
the error page it is showing the exception.
How to overcome this problem?
Is there any special method for handling such errors,in struts?
any ideas?
thanks,
vysh
Dhananjay - 05 Jun 2007 12:10 GMT
> hi,
> I have devoloped an application using Struts.I am passing
[quoted text clipped - 9 lines]
> thanks,
> vysh
Yes you can add a global exception in struts config like this:
<global-exceptions>
<exception
type="java.lang.Exception"
key="error.input"
path="/WEB-INF/errors/errorPage.jsp"/>
</global-exceptions>
Hope this helps.
Regards
Dhananjay