No, I am using struts 1.1, I would like to implement the following case:
In valiation.xml:
<form name="/myAction">
<!--if submit button 1 clicked, I validate the
following field>
<field property="myProperty" depends="required">
<msg name="required" key="error.key1" />
</field>
<!--if submit button 2 clicked, I validate the following
field>
<field property="name" depends="myValidator">
<msg name="myValidator" key="error.key2" />
</field>
</form>
I don't want to validate both fields at the same time when just one
submit button is clicked. Your helps are appreciated!
-----Original Message-----
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Friday, February 01, 2008 10:45 AM
To: Struts Users Mailing List
Subject: RE: Struts validator
--- "Zhang, Larry (L.)" <[EMAIL PROTECTED]> wrote:
> We are not using Struts 2 tag and thus I can't use s:submit tag.
Are you using Struts 2 at all?
You can still use the generated HTML as a template to create your own
HTML,
although... not sure why you wouldn't just use the tag in this case.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]