Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sample Error jsp page?

A Harry
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic