I have the below form.  In the ActionForm class for this form I am testing for a valid username.  The code is like so: errors.add("username", new ActionError("error.username.required"));  In my mappings I have the response going back to this same page if anything is not valid.  But how do I get access the messages in the ActionErrors object using a tag,  I have tried <html:errors /> on the same page with no results.
 

            <form:form action="logon.do">
             <table width="65%" border="0" cellspacing="5" cellpadding="0">
              <tr align="left" valign="bottom">
               <td>
                <font size="2">
                 <b><font face="Arial, Helvetica, sans-serif" size="1">USER ID:</font></b>
                </font>
                <br>
                <form:text property="username" size="15" maxlength="30" />
               </td>
              </tr>
              <tr align="left" valign="bottom">
               <td>
                <font face="Arial, Helvetica, sans-serif" size="1"><b>PASSWORD</b>:*</font>
                <br>
                <form:password property="password" size="15" maxlength="30" />
               </td>
              </tr>
              <tr align="left" valign="bottom">
               <td> 
                <form:submit value="Logon" />
               </td>
              </tr>
             </table>
            </form:form>

Reply via email to