struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10432] New: - DynaValidatorActionForm does not validate data
Date Wed, 03 Jul 2002 08:41:55 GMT
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:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


Mime
View raw message