wood burning stoves 2.0*
The moose likes Servlets and the fly likes validWhen Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "validWhen Error" Watch "validWhen Error" New topic
Author

validWhen Error

satyamreddy reddybrother
Greenhorn

Joined: Mar 26, 2006
Posts: 5
hello any body can help

iam using validwhen but iam not getting any validation a client side

validation-rules.xml
<validator name="validwhen"
msg="errors.required"
classname="org.apache.struts.validator.validwhen.ValidWhen"
method="validateValidWhen"
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"/>
and
validaion.xml
<form name ="/mcclist">

<field property ="Id" depends ="validwhen">
<arg0 key="arrsetup.arrid" resource="false"/>

<var>
<var-name>test</var-name>
<var-value>((issuerId == null)or(*this*!= null) </var-value>
</var>
</field>
</form>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

Moved to the Struts forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validWhen Error
 
Similar Threads
why no errors shown for password validation in struts 1.2.4
validWhen Error
validWhen Error
struts 1.2.7 validation using validwhen
Struts - validation