This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Struts and the fly likes validWhen Error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply 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: 56547
    
  14

Moved to the Struts forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

"reddybrother",

You had a valid display name, now you do not. Please change it back since accounts with invalid display names get deleted.

We require display names to be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Thanks,
Dave.
yin jiang
Greenhorn

Joined: Mar 28, 2006
Posts: 7
validwhen validation will only be done on server-client.


My English is poor. Sigh!!!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: validWhen Error
 
Similar Threads
validWhen Error
validWhen Error
why no errors shown for password validation in struts 1.2.4
struts 1.2.7 validation using validwhen
Struts - validation