You can use Struts Validator via validation.xml. In that case, validator
already supplies the validation code; you would only need to write your
own validation for things validator can't check for you.
If you want to do your validation on the server not the client, the
validation would be written in Java. validator supports producing
Javascript for client side validation, but there's nothing in base
Struts to execute Javascript on the server. You'd need to look into
something like BSF or something if you really want to write Javascript
but run it server side.
L.
Srinivas Jadcharla wrote:
Iam sorry i have no idea abt DynaAction forms.
On 11/18/05, fea jabi <[EMAIL PROTECTED]> wrote:
using dynaactionforms. would prefer using the the validator xml for this.
thanks for your response.
From: Srinivas Jadcharla <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: Struts Users Mailing List <user@struts.apache.org>
Subject: Re: struts & javascript question
Date: Fri, 18 Nov 2005 11:05:29 -0500
Look for examples in the net or you can use validate method in the form
it
is easier.
On 11/18/05, fea jabi <[EMAIL PROTECTED]> wrote:
write your own Validator
do you mean in Validator.xml right?
can I right a javascript in there that does this?
where can I find an example that does such stuff?
Thanks.
From: Srinivas Jadcharla <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: Struts Users Mailing List <user@struts.apache.org>
Subject: Re: struts & javascript question
Date: Fri, 18 Nov 2005 10:57:36 -0500
Use Validate method in the Action Form or write your own Validator.
On 11/18/05, fea jabi <[EMAIL PROTECTED]> wrote:
In my JSP
have a checkbox. When it is checked by user have to make sure 2 of
the
entries are enteried.
i.e
chkBox1 -- checkbox --- checked
txtfield1 ------------------- Should have entered value.
txtfield2 -------------------- Should have entered value.
Also, have a 2 radio buttons. When selected one of them by the use
would
like to display a message.
Do not want to use client side java script. what is the best way
to
do
this?
thanks.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today -
it's
FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Thanks & Regards
Srinivas
732-648-9421(Cell)
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar â€" get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Thanks & Regards
Srinivas
732-648-9421(Cell)
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Thanks & Regards
Srinivas
732-648-9421(Cell)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]