Hello im new to
struts and i would like to now how to get qoute "
The default code for queuing an error message is:
errors.add(
ActionErrors.GLOBAL_ERROR,
new ActionError("error.username.required")
);
To specify that this message is for the "username" property, we would code this instead:
errors.add(
"username", new ActionError("error.username.required"));
If we specify a property, we can use the <html:errors/> tag (or any of the alternatives) like this:
<P>Username: <html:text property="username"/></P>
<P>Password: <html
assword property="password"/></P>
The "username" errors print next to the username field, and any "password" errors print next to the password field. "
taken from
http://husted.com/struts/tips/017.html but this dosent work ? it dosent show the error msg. if i get the msg with the <html:error property="xx"> then it works but i dont want to do that !
please help a struts beginner
//thanks rille