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 displaying errors by using struts validation framework 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 "displaying errors by using struts validation framework" Watch "displaying errors by using struts validation framework" New topic
Author

displaying errors by using struts validation framework

Manohar Saddala
Greenhorn

Joined: Jul 11, 2007
Posts: 12
Hi,

I has small issue in displaying the error messages.
I am using struts validation framework.

I have a jsp which consists of two text fields which are mandatory. I need to check whether the text is entered or not and display the error msg for that text boxs individually.

In validation.xml, i wrote the filed as "required".

In jsp, i wrote <html:errors property="resourceskey"/> ,even the validation fails also the msg is not displayed.

But when i uses, <html:errors/> then all msg are shown.

But what i want to show thw error msg individually at text boxes.

Kindly can any one help regarding this..

Thanks and Regards,
Manohar


manu
 
jQuery in Action, 2nd edition
 
subject: displaying errors by using struts validation framework
 
Similar Threads
Error messages are not being displayed while using validator
Problem in displaying message using resource bundle for validation framework
Struts Validator not validating on the server-side
problem in Struts Validation
problem with action input attribute