File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Validation using Struts Framework

 
Vicky Mohan
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just want to know if the following condition can be verified using STRUTS validation framework

I have a form with four fields. They are not REQUIRED, but as the User focusses on a field and navigates to the next field without entering any value, i want to generate an alert message saying he hasnt entered any values for the field he skipped. Its not a error, but just a warning message.

I can get this working with Plain Javascript, just wondering if the validator framework has any implementation for this

Thanks for all your suggestion.
 
alan do
Ranch Hand
Posts: 354
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
struts validation framework provides true/false answer to a validation question (and display an error message). if you want to use 'warnings', you have to pull lots of tricks. it's best done using plain javascript; otherwise, you need to do full validation and display an error message stating that the first field is required.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic