Prepare for your Next Interview
This is a discussion on Action Messages within the Java forums, part of the Software Development category; 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 ...
|
|||
|
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. |
| Sponsored Links |
|
|||
|
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-- |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Load testing for sending messages | ashacta | LoadRunner | 1 | 10-06-2008 03:48 AM |
| Pass parameters from one action to another action | JobHelper | C and C++ | 1 | 12-26-2007 06:09 AM |
| Can we filter only the error messages? | prakash.kudrekar | Scripting | 0 | 11-14-2007 03:49 AM |
| Difference between Function, Copy of Action & Externel Action | Geek_Guest | QTP | 1 | 07-31-2007 07:33 AM |
| How to Block messages in UNIX | nancyphilips | Unix/Linux | 1 | 09-24-2006 04:56 AM |