struts exception handling

Hi,

I have an application which shows an errorpage (jsp) when exceptions are thrown. I do this via the struts-configuration.

But I would also like to know how I could display a different message for every different exception thrown (a more customized error message).

How could I change my configuration so that a different message from the properties file is shown.

Thanks,

jany

[415 byte] By [jany1981a] at [2007-11-26 17:30:34]
# 1

<action....>

<exception type="com.abc.def..ObjectNotFoundException" key="errors.abc..defNotFound" path="/xyw.do" scope="request" handler="com.abc.def...abcExceptionHandler">

</exception>

</action>

also

http://struts.apache.org/1.x/userGuide/building_controller.html

you have to define the key in application resources.properties file

u have to define the ""handler="com.abc.def...abcExceptionHandler"" in <global-exceptions> tag of the struts-config.xml

Hope it will be helpful

96ec456a at 2007-7-8 23:58:30 > top of Java-index,Java Essentials,Java Programming...
# 2
thank you, it was helpful
jany1981a at 2007-7-8 23:58:30 > top of Java-index,Java Essentials,Java Programming...