• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts client side validation

 
Ranch Hand
Posts: 180
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have to migrate my JS code in my JSPs to Struts 1.0 validator.
I have put all the necessary code into the xml files,resource properties and the jsps.

I have many fields which are being validated in the JS functinons to be empty.If empty then an alert message.

I am trying to go one by one of these fields.I am trying for the first one where i have put the required validator in the xml files.
The code in jsp is like a js function is called which is calling the document.form.submit().

So in the html:form tag i have used the onsubmit="return validateBusinessForm(this)" so that whenever js functtion calls the submit the onsubmit method of the form should be called and the validation should happen.

But i am not able to invoke the validation.Am i doing something wrong?..

Please help
 
reply
    Bookmark Topic Watch Topic
  • New Topic