This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Validation framework not working for login screen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validation framework not working for login screen" Watch "Validation framework not working for login screen" New topic
Author

Validation framework not working for login screen

Rahul somanath
Greenhorn

Joined: Jul 12, 2010
Posts: 19
I am really getting frustrated in making the validation framework work for my login screen.

I have done almost all the things correctly but could not figure where i have gone wrong.
Below contain my struts-config.xml file



Below is the content of validation.xml file



next is the content of login.jsp page.

It will be great if someone could identify the mistake i have made. Currently when i click login button without entering anything in the username field nothing happens. I currently expect validation error message to be displayed for not entering the username

Rahul somanath
Greenhorn

Joined: Jul 12, 2010
Posts: 19
I have resolved the issue. There was a invalid <form-bean/> tag in the struts config file.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Validation framework not working for login screen
 
Similar Threads
Struts Exception
Struts Validation Empty alert Box
DispatchAction No action instance for path ...
How is a request handled within struts framework
problem in Struts Validation