You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/02/22 03:42:56 UTC
DO NOT REPLY [Bug 17306] New: -
extend tag with "forward" attribute for error page
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17306>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17306
extend <field> tag with "forward" attribute for error page
Summary: extend <field> tag with "forward" attribute for error
page
Product: Struts
Version: 1.1 Beta 3
Platform: Other
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: Other
Component: Validator Framework
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: nick.afshartous@proactcorp.com
I was putting together a multi page example using the Validator
and DispatchAction. It seemed cumbersome to have
to define an action mapping for each page in order to
to use the action "input" attribute to specify the error page.
The nice thing about the DispatchAction is that it helps
to minimize the number of action mappings.
Maybe a nice enhancement would be to extend the <field> tag in validation.xml
with an attribute to specify the name of the action forward
to use if the validation fails.
For example,
<field property="streetAddress" page="2"
depends="required" forward="address">
<arg0 key="prompt.address"/>
</field>
would indicate to use action forward "address" if
the required validation fails. If more than one validation
fails then the first foward of a field that failed would be used.
If no fowards are specified in validation.xml then the behavior
would be as is now.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org