Hi,
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>
<var-name>test</var-name>
<var-value>( (*this* == null) or(*this*.equals("2004"))) </var-value>
</var>
</field>
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
MaRu
:)
Discussions
Web tier: servlets, JSP, Web frameworks: how to check a bean property using Validator Frame work conditio
-
how to check a bean property using Validator Frame work conditio (0 messages)
- Posted by: Maruthi Ram
- Posted on: June 10 2004 03:27 EDT