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 2005/06/24 12:48:16 UTC
DO NOT REPLY [Bug 35492] New: -
Date validation in Struts 1.2.7
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=35492>.
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=35492
Summary: Date validation in Struts 1.2.7
Product: Struts
Version: 1.2.7
Platform: Other
OS/Version: Windows XP
Status: NEW
Severity: critical
Priority: P1
Component: Validator Framework
AssignedTo: dev@struts.apache.org
ReportedBy: nag_chami@yahoo.co.in
Hi,
I am facing the problem in date validation. My earlier
version was working perfectly. After replacing the
latest validator-rules.xml, it is not performing the
date validation. It is just by-passing the validation.
My validator-rules.xml file looks like...
<validator name="date"
classname="org.apache.struts.validator.FieldChecks"
method="validateDate"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
org.apache.commons.validator.Validator,
javax.servlet.http.HttpServletRequest"
depends=""
msg="errors.date"
jsFunctionName="DateValidations"/>
validation.xml file looks like...
<form name="/jsp/myapp/mycontroller">
<field property="inDate" depends="required,date">
<arg0 key="myForm.inDate"/>
<var><var-name>datePattern</var-name>
<var-value>MM/dd/yyyy</var-value></var>
</field>
</form>
At the same time custom validation is also not
working.
My input form type is :-DynaValidatorActionForm
If anybody come across this problem, please let me
know the reason why it is not working?Thanks......
Regards
Nagaraj P
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org