Hi all

I'm a bad coder so sometimes I get nullpointer exceptions thrown back from an action
So I declared a global-exception in my struts-config.

<global-exceptions>
      <exception key="errors.nullpointer"
        type="java.lang.NullPointerException"
        path="page.error"/>
</global-exceptions>

Problem is that I'm losing the message that comes with the exception.
Is there a way to get the complete message?

In an action when I use new ActionError("error.database", exception.toString()
the complete error is shown by using <html:errors/>

I tried <%= request.getAttribute(org.apache.struts.Globals.EXCEPTION_KEY) %>
but this only gives me java.lang.NullPointerException

TIA Peter








---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to