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 2002/07/03 10:41:55 UTC
DO NOT REPLY [Bug 10432] New: -
DynaValidatorActionForm does not validate data
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=10432>.
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=10432
DynaValidatorActionForm does not validate data
Summary: DynaValidatorActionForm does not validate data
Product: Struts
Version: Nightly Build
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Controller
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: marekmosiewicz@poczta.onet.pl
DynaValidatorActionForm does not validate data.
RESOLUTION :
In DynaValidatorActionForm validator is initialized in this way
Validator validator = StrutsValidatorUtil.initValidator(mapping.getPath
(),
this,
application,
request,
errors, page);
The problem is that mapping.getPath() returns servlet path, but validator is
avaible by in hashtable via form name key, so validator cant find validation
rules for this form. When I changed mamming.getPath() to mapping.getAttribute()
it started to work (there is such case in another validator which works). I
think that both should be changed to mapping.getName() which I think is most
correct.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>