wood burning stoves 2.0*
The moose likes JSP and the fly likes JSP Error page - getting page where error occured. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP Error page - getting page where error occured." Watch "JSP Error page - getting page where error occured." New topic
Author

JSP Error page - getting page where error occured.

Angelo Bonaparte
Greenhorn

Joined: Aug 02, 2006
Posts: 19
Hi, I have a Struts application. When an error occurs an error page is displayed and an email sent to the system admin. Is there a way to get the page or link where the error occured? I tried with the referrer but it's not always there. Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

Check out the Servlet 2.4 Specfication, section SRV.9.9.

If you haven't read the servlet specification from cover to cover, nows a good time to do so.
[ May 01, 2007: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Consider Paul's rocket mass heater.
 
subject: JSP Error page - getting page where error occured.
 
Similar Threads
jar file
Question about composite primary key in JPA.
Errorpage
JDBCExceptionReport and Hibernate
Defining ErrorDocument in Websphere 5.0.1