• 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
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Dynamic form validation

 
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am very well familiar with Struts validation framework that uses validation.xml. However, as a new client requirement we are planning to allow the client himself to specify which all fields he wants to make mandatory for signing-up on his business site. Thus one client may choose to make phone mandatory whereas another may not make it mandatory. I know how can I handle this mandatory validation inside my struts action, but is there a way by which I can dynamically put this inside struts own validation framework?

Any pointers, suggestions would be highly appreciated!

TIA,
- Manish
 
Ranch Hand
Posts: 2107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At which places did you put your struts validations? (xml, validate method)

You may be able to change the validation if you used the validate method.

If you used the xml, it would most likely need an application restart; which is probably not satisfactory to your requirements.
 
rubbery bacon. rubbery tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!