• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Struts2 validation

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please could anybody help me?

I am trying use Struts2 validation but in still doesn't work and I don't know why.

I have form



where I want validate an email.

I have action class ViewUser and XML validationFile ViewUser-validation.xml in same package.




ViewUser-validation.xml contains




Has anybody any idea why it doesn't work? When I put to email editBox not email value nothing happened.

I looks like when it doesn't know about validation file. Validation file should name MyActionClass-validation.xml I think it's ok.

I use Maven2 is possible problem could be there?

Thanks so much
 
Ranch Hand
Posts: 94
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
your validation.xml contains invalid validation syntax it should be as follow.

you placed <field-validator> inside another <field-validator>
 
BWA HA HA HA HA HA HA! Tiny ad:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!