Global exception mapping for ConfigurationException?
Dennis Doubleday <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <20988851.1145295328845.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
If one of my users types an invalid Action URL, say "foo.action" into the browser location bar, I want to return my 404 page. WebWork throws a ConfigurationException in this case, so I thought I could handle this case with the following in xwork.xml:
<global-exception-mappings>
<exception-mapping exception="com.opensymphony.xwork.config.ConfigurationException" result="error"/>
</global-exception-mappings>
where the "error" result is a global mapping. However, this exception doesn't seem to be getting caught--the user continues to see a ConfigurationException stack trace.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=26272&messageID=51691#51691
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]