You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Andy.de" <a....@best-blu.de> on 2006/09/27 10:28:59 UTC

global exceptions, key?

Hi struts experts,
i have a global exception at my struts-config like this:

<exception
            key="error.message1"
            type="de.myPackage.myException"
            path="/error.jsp"/>

How can i display the text specified by the key attribute on my jsp?
How can i display myException.getMessage() and/or
myException.getStackTrace() on my jsp?

Regard, Andy
-- 
View this message in context: http://www.nabble.com/global-exceptions%2C-key--tf2343367.html#a6522670
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: global exceptions, key?

Posted by "Andy.de" <a....@best-blu.de>.


Givler, Eric wrote:
> 
> I'm pretty sure the error.message1 key which is looked up in the resource
> file can be displayed in the resulting jsp with:
> <html:errors/>
> 
> 

Hi Eric,
thats what i tried but it don't work
Regards, Andy
-- 
View this message in context: http://www.nabble.com/global-exceptions%2C-key--tf2343367.html#a6541281
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org