I had a similar question a week or so ago. I think you can use requiredIf, but that
is being deprecated in favor of validWhen. I'm using a hidden input to tell which
submit button was pressed and which field to validate. Once validWhen makes it in to
a non-beta release, I'll probably use
Hi Brain,
Though it is possible, I would advise you to use a button and call a
function to submit the required form.
Secondly You need to be careful of having a single input element of type
text in out form since, a Enter key press in that would submit the form.
Take actions accordingly.
I
possible.
Cheers,
Brian
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 01 October 2003 08:44
To: Struts Users Mailing List
Subject: Re: Using multiple validators on one jsp
Hi Brain,
Though it is possible, I would advise you to use a button and call a
function
3 matches
Mail list logo