This is a part of my web.xml
<error-page>
<error-code>500</error-code>
<location>/index</location>
</error-page>
Is there any way to tell to web.xml file that in development mode :
<location>/displayException</location>
for the above location property
?
or any way to add condition through code ?
Purpose of trying to do this is: In development mode I want to see the exception in page and in live mode I want to redirect him to default page when an exception occured.