Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I validate my Data

 
surendar prabu
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • 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.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • 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 ]
 
RoshaniG Gopal
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic