aspose file tools*
The moose likes Struts and the fly likes Struts validation - one validation rule Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts validation - one validation rule" Watch "Struts validation - one validation rule" New topic
Author

Struts validation - one validation rule

Per Lovdinger
Ranch Hand

Joined: Jun 11, 2001
Posts: 35
Hi there,

I have a question concerning validator framework:

If have the same attribute for example salary in two forms is there any possibility
to define the validation rule in one place.
So that my form-field can depend on that rule.

regards


<form-validation>
<formset>

<form name="userFormVF">
<field property="userId" depends="required">
<arg0 key="prompt.userId"/>
</field>
<field property="salary" depends="double">
<arg0 key="prompt.salary"/>
</field>
</form>

<form name="userFormDVF">
<field property="userId" depends="required">
<arg0 key="prompt.userId"/>
</field>
<field property="salary" depends="double">
<arg0 key="prompt.salary"/>
</field>
</form>
</formset>
</form-validation>
Sheldon Fernandes
Ranch Hand

Joined: Aug 18, 2004
Posts: 157
At present, I don't think this is supported.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts validation - one validation rule