This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Struts Validator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Validator" Watch "Struts Validator" New topic

Struts Validator

S bitz
Ranch Hand

Joined: Jan 20, 2006
Posts: 80
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 ?

hassan mahmood

Joined: Jan 15, 2003
Posts: 17
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:
subject: Struts Validator