struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhang, Larry \(L.\)" <lzhan...@ford.com>
Subject RE: Struts validator
Date Fri, 01 Feb 2008 15:54:56 GMT

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:newton.dave@yahoo.com] 
Sent: Friday, February 01, 2008 10:45 AM
To: Struts Users Mailing List
Subject: RE: Struts validator

--- "Zhang, Larry (L.)" <lzhang20@ford.com> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message