• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Validation Framework in struts2

 
Greenhorn
Posts: 25
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi i am working with struts 2 with hibernate .

i want to use validation framework with my application ,and i made ApplicationResources.properties file under src/resources/ .

and the myAction-validation.xml in the package where my action class is located.

but m not able to work with it,i started using a simple text field in my jsp


i have used valdiation framework with struts1.x it was cool there but this is first time m working with struts2. Please suggest


 
Greenhorn
Posts: 20
Hibernate Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI satnam,
Try using the validate='true' inside your form tag.


Anshul
 
satnam singh negi
Greenhorn
Posts: 25
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Anshul K Jain wrote:HI satnam,
Try using the validate='true' inside your form tag.


Anshul



i guess this is for client side validation, but in case i want to do some server side validation then i want to use validation framework..and i am able to use it....just need to configure some validation rules with respect to each action ...it pretty simple and good to work with struts validation framework..


thanks for the responses.

cheers
 
I'd appreciate it if you pronounced my name correctly. Pinhead, with a silent "H". Petite ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic