This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes Sample Error jsp page? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Sample Error jsp page?" Watch "Sample Error jsp page?" New topic

Sample Error jsp page?

A Harry
Ranch Hand

Joined: Jan 23, 2002
Posts: 124
I'm trying to setup a error page that will show struts errors or other errors. I have a jsp page that has the isErrorPage="true" set at the top & is defined in web.xml as


in the jsp page Struts errors are handled like this -

<table width="400" border="1" bordercolor="#FF0000">
An unspecified error has occurred.

I want to display in the messagesNotPresent bit the top cause of the exception thrown i.e SQLException, ServletException etc...

Anybody got an example of how best to show this?

many thanks

I agree. Here's the link:
subject: Sample Error jsp page?
It's not a secret anymore!