You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Mulligan <da...@LECAN.ie> on 2002/12/11 10:56:36 UTC
common validation error page
Got a quick validation question.
All validation errors that occur from action forms are to be displayed on a
common error page. Not the input page of the action!
How do I setup the validator to forward to this common error page when there
are problems?
e.g. Something like the below will work
<action path="/logon"
type="ie.lecan.core.web.authentication.actions.LogonAction"
name="/authentication/logonForm"
input="/pages/common/errors.vm"
scope="request">
<forward name="success" path="/myWorkspace.do"/>
</action>
but I prefer not this for two reasons
1. the input should really be /pages/logon.vm and may confuse developers
etc. later.
2. it's a pain having to set input="/pages/common/error.vm" for every
action.
Any ideas would be greatly appreciated
dave.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>