I have a form with property yearBuild;
  I am using Struts Validator Frame work.

  I want to show a error message..if the entry "yearBuild" is greater than the current year...

  How can I do it using validator Frame work using Struts...

  I have tried like this..

  <field property="propertyDetails.yearBuilt" depends="requiredif">
      <msg name="requiredif" key="marketingPlan.propertyDetails.yearBuilt.mustBeAValidNumber" resource="true"/>
<var-value>( (*this* == null) or(*this*.equals("2004"))) </var-value>


it is checking for null and throwing error it the entry is null.
but it is not showing any error for the second one, which is required..

Thanx in advance