aspose file tools*
The moose likes Struts and the fly likes How to create a Generic Error Page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to create a Generic Error Page " Watch "How to create a Generic Error Page " New topic

How to create a Generic Error Page

Parameswaran Thangavel
Ranch Hand

Joined: Mar 01, 2005
Posts: 485
i need to have a generic error page which will be common for all types of error.
Internal Server Error - Handled through web.xml
File Not Found - handled through web.xml
ApplicationSpecificException - handled through struts-config.xml

Now the error message is going to vary for each and every type.

Is it possible to have a common error page where based on input parameter the error message that displays to user get varies.

Is there any option to pass parameter to error page from web.xml (for 404 and 500) and struts-config.xml(application specific error.)

Any pointers would really help.
I agree. Here's the link:
subject: How to create a Generic Error Page
Similar Threads
Program ends with HasAccessAction
ApplicationResource. properties file ?
MessageResources are not loaded for three languages, japanese, Turkish, polish
Getting values from properties in validate-using multiple message-resources in struts
doubt in error handling in web.xml file