catching exceptions tomcat servlet


i have set-up tomcat locate exceptions pass servlet following web.xml.



<servlet-mapping>
<servlet-name>exception</servlet-name>
<url-pattern>/exception</url-pattern>
</servlet-mapping>
<error-page>
<exception-type>java.lang.exception</exception-type>
<location>/exception</location>
</error-page>


this works glorious i have servlet logging information forwarding jsp. however i wish record uri caused difference thrown i request.getrequesturi() i /exception servlet route that's doing logging exception. i uncanny uri caused exception?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?