File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!