This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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
jQuery in Action, 3rd edition