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 29919] New: - validator is not ideal
Date Mon, 05 Jul 2004 13:24:51 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29919>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29919

validator is not ideal

           Summary: validator is not ideal
           Product: Struts
           Version: 1.1 Final
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Validator Framework
        AssignedTo: dev@struts.apache.org
        ReportedBy: chlolz@sohu.com


if i have a form,which one field is number type(int,double,or float),and i 
need to validate the client input by validator framework for this field,so 
when i input no number string,such as "adbcde", the following is :
   1.first populate the input data to the form bean,because the input data is 
not the number type,it cann't be transformed,so the field value of form bean 
is its default value.
   2.then the validator to validate the field value of form bean,but the value 
is not really value input by the client,so if i want to validate the number 
type data,the field type in form bean must be string type.
   but i think that is not a good idea,it is better that the client input data 
will be populate to form bean,after the validation is passed

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message