aspose file tools*
The moose likes Struts and the fly likes validwhen validation rule Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validwhen validation rule" Watch "validwhen validation rule" New topic
Author

validwhen validation rule

Nicola Guy
Ranch Hand

Joined: Jun 23, 2004
Posts: 91
Does anyone have code that will perform the validwhen validation rule because I can't find it anywhere and have no idea how to go about writing it from scratch

Thanx

Nicola
Nicola Guy
Ranch Hand

Joined: Jun 23, 2004
Posts: 91
Can anyone help??
Its kinda urgent

??
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

javascript or java?


A good workman is known by his tools.
Nicola Guy
Ranch Hand

Joined: Jun 23, 2004
Posts: 91
its in javascript
Marc Winder
Greenhorn

Joined: Nov 26, 2003
Posts: 6
I haven't found much in the documentation or floating around in cyberspace so I'm going to write my own JavaScript function for the validator-rules.xml. When I get it working I'll let you know.
Nicola Guy
Ranch Hand

Joined: Jun 23, 2004
Posts: 91
Thanx
it would be very welcome
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
1. Float rule in validator-rules.xml



2. You can config for validate data in validator.xml


3. In jsp file



This will help you.


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
Nicola Guy
Ranch Hand

Joined: Jun 23, 2004
Posts: 91
so will this do the required validation only if another field is populated
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: validwhen validation rule