-
Junior Member
Action Messages
How do you display error messages in struts?
For eg. On click submit button, if the user has not entered username, it must display an error message as "Username is required" on the page itself. Please help me how to do it without using javascript and how can we do this by using struts.
-
Banned
Re: Action Messages
Hi,
in struts <html:errors> tag is there in struts-html.tld file.
in the <html:form> tag you have to include this tag before the fields username. But to use this tag you have to copy struts-html.tld and configure it in web.xml.
Regards,
--suresh--
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules