• 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

How can I validate my Data

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How Can I validate my <html:form> data from client side with out using Java Script, but by using some thing provided by struts.

can i use <script> tag in my struts congig.xml.

what is the difference between using this tag and wiring the java script function directly in JSP.

regards,
Surendar Prabu.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you want client-siide validation, you will be using JavaScript. That's the only way it can be done. If you use the Struts Validation framework, the JavaScript is provided by the framework instead of you writing it.

can i use <script> tag in my struts congig.xml.


No, you can't.


The following links will give you more information about how to use client-side validation:

http://struts.apache.org/1.2.9/userGuide/dev_validator.html
http://www.roseindia.net/struts/struts_validator_framework.shtml
[ September 01, 2006: Message edited by: Merrill Higginson ]
 
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Surendar Prabu.
You may use the Struts validation for the same. It may used by using Validator.xml along with validation-rules.xml.

Regards,
Roshani.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic