Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

conditional Date field validation in struts validation.xml

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I need a help or suggestion from anyone of you regarding the conditional date field validation

i have a form which has three fields

1. determinationDate
2. parentCooperation
3. check

Date should follow datepatternStrict and should be validated only when the value of parentCooperation is Parent is NonCooperative and check is true.

i have tried as below
but i am not getting the result expected.
if anyone find something wrong
please let me know
i appreciate your help Thanks.

<form name="NonForm1">
<field property="determinationDate" depends="requiredif,date">
<arg0 key="NonCooperationForm.determinationDate.displayname"/>

<var-value>Parent is NonCooperative</var-value>

Thank you
Your mind is under my control .... your will is now mine .... read this tiny ad
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic