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 Validator

 
S bitz
Ranch Hand
Posts: 80
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using the validator framework but i am not able to get what i want. When i submit a form with blank fields, i want a message to be displayed, but nothing happens.Could anyone explain how exactly to use the framework?
my code is as follows :




The ApplicationResource file is the same as it comes with the struts examples.
Do i need to make some changes in that file ?

Thanks
 
hassan mahmood
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check struts-config file that u have properly defined validate=true in action mapping.
if u wanna show messages using javascript alert then use html:javascript on jsp pages.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic