Re: Client Side Validation with Struts

2008-03-31 Thread Lukasz Lenart
  Hello. I am using Struts 1.3.8. The issue is not one of making the
  Javascript work (it is working correctly), but rather preventing a
  Struts action from being called. Is this possible given that the
  action of a form is a Struts action?

I'm not sure if I understand you, but all you have to do is return
true or false from your JavaScript function (as you doing), and that
will prevent a web browser to submit form and send them to a www
server. And if there be no request from web browser, there be no
action called.
Please copy/paste the web page content you had got when you started your form.


Regards
-- 
Lukasz

http://www.linkedin.com/in/lukaszlenart

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Client Side Validation with Struts

2008-03-29 Thread Lukasz Lenart
Hi,

Could you be more specific, which Struts version? If you use onsubmit
event, you should do that like this:

onsubmit=JavaScript: return validate();

where validate() has to return true or false.


Regards
-- 
Lukasz

http://www.linkedin.com/in/lukaszlenart

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Client Side Validation with Struts

2008-03-29 Thread Asad Habib
Hello. I am using Struts 1.3.8. The issue is not one of making the
Javascript work (it is working correctly), but rather preventing a
Struts action from being called. Is this possible given that the
action of a form is a Struts action?

- Asad



On Sat, Mar 29, 2008 at 6:44 AM, Lukasz Lenart
[EMAIL PROTECTED] wrote:
 Hi,

  Could you be more specific, which Struts version? If you use onsubmit
  event, you should do that like this:

  onsubmit=JavaScript: return validate();

  where validate() has to return true or false.


  Regards
  --
  Lukasz

  http://www.linkedin.com/in/lukaszlenart

  -
  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]



Client Side Validation with Struts

2008-03-28 Thread Asad Habib
Hello. I am validating data on the client-side using the Javascript
onsubmit event handler and this is working just fine. The problem I am
having is with trying to prevent the action from being called after
the alert window is closed. Is it possible to do this? If so, how?
Also, for client side validation with Struts, do I need to use the
validator? Any help would be appreciated. Thank you.

- Asad

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Need help in client side validation in Struts 2.0

2007-04-19 Thread arunabh

hi,
If somebody have some information about client side validation in Stutrs2. 0
then send me .I am in a desperate need  of the same .
thanks
 Arunabh  
-- 
View this message in context: 
http://www.nabble.com/Need-help-in-client-side-validation-in-Struts-2.0-tf3605223.html#a10072395
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Need help in client side validation in Struts 2.0

2007-04-19 Thread Laurie Harper

arunabh wrote:

hi,
If somebody have some information about client side validation in Stutrs2. 0
then send me .I am in a desperate need  of the same .
thanks
 Arunabh  


Well, you could start with the documentation:

http://struts.apache.org/2.x/docs/validation.html
http://struts.apache.org/2.x/docs/client-side-validation.html

L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: client side validation using struts in a jsf+struts integrated application

2004-09-26 Thread Craig McClanahan
On Fri, 24 Sep 2004 11:38:56 +0530, babloosony [EMAIL PROTECTED] wrote:
 Hi All,
 
 How do I do client side validation(using struts) in jsf+struts
 integrated application which uses jsf-struts libary provided by
 CraigMc. ?

You enable client side validation with Struts+JSF the same way you do
in a standalone Struts based application -- by adding an onsubmit
hander to the form tag, and an appropriate JavaScript tag to include
the actual validation methods.

Both of the examples included with the Struts+JSF library have client
side JavaScript enabled.

 
 Thanks  Regards,
 Kumar.

Craig

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



client side validation using struts in a jsf+struts integrated application

2004-09-24 Thread babloosony
Hi All,

How do I do client side validation(using struts) in jsf+struts
integrated application which uses jsf-struts libary provided by
CraigMc. ?

Thanks  Regards,
Kumar.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem in Client Side Validation in Struts

2004-06-05 Thread Sandip Mante




Dear Sir,
I have a problem in Client Side Validation in Struts 1.1.Actually see
what is happening and what i have done:
I have written all validdation and validation rules invalidator.xml and
valation-rule.xml.
I have given path (through plug-in tag) in struts-config file. \
I have called it in JSP's by using return validateFormName onsubmit of
the Form.
Its working properly when I left the any required (of which validation
ihave given in Validator.xml file)field blank.
But it is not working when I'm doing validation of Maxlength and 
minlength
of fields? It is not generating any error but doesn't working also. WHy 
i'm
getting such a problem.
Hope you will undersatnd it and will reply me.
Thanks and Reagrds,
Sandip Mante



  
  

  


  

  
  

  


  
  "The 
Journy has been started and the sky is limit !!!" 
"Failure always made me try harder next 
time!!!"

  

  


  Sandip K. ManteSoftware 
Engineer 
  Penta Computing Pvt. LtdShivaji 
Nagar,Pune-411004 

  [EMAIL PROTECTED] 
  

  
  
mobile: 
+919822859361 

  
  

  


  Signature powered by Plaxo
  Want a signature like 
  this?
  
Add me to your address 
book...

Penta.bmp

RE: Problem in Client Side Validation in Struts

2004-06-05 Thread David Friedman
The form should have an onSubmit setting to
invoke that javascript function.  Have you
assured that the web page you see in the
browser:

a) has the onsubmit listing your validation form function
b) has the require() javascript function
c) has the form named javascript function
d) isn't showing any javascript error messages.

Regards,
David

-Original Message-
From: Sandip Mante [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 05, 2004 12:33 AM
To: [EMAIL PROTECTED]
Subject: Problem in Client Side Validation in Struts


Dear Sir,
I have a problem in Client Side Validation in Struts 1.1.Actually see
what is happening and what i have done:
I have written all validdation and validation rules invalidator.xml and
valation-rule.xml.
I have given path (through plug-in tag) in struts-config file. \
I have called it in JSP's by using return validateFormName onsubmit of
the Form.
Its working properly when I left the any required (of which validation
ihave given in Validator.xml file)field blank.
But it is not working when I'm doing validation of Maxlength and minlength
of fields? It is not generating any error but doesn't working also. WHy i'm
getting such a problem.
Hope you will undersatnd it and will reply me.
Thanks and Reagrds,
Sandip Mante
The Journy has been started and the sky is limit !!! Failure always made
me try harder next time!!!

Sandip K. Mante
Software Engineer Penta Computing Pvt. Ltd
Shivaji Nagar,
Pune-411004
[EMAIL PROTECTED] mobile: +919822859361




Signature powered by PlaxoWant a signature like this?

Add me to your address book...


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]