U can use
First method:

<html:messages id="message">
     <bean:write name="message"/>
  </html:messages>

Or, you can place specific messages at different locations

     <html:messages id="message" property="<%= 
org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>">
        <bean:write name="message"/>
     </html:messages>

  <table>
     <tr>
        <td align="left">
          <html:text property="username" size="16" maxlength="16"/>
        </td>
     </tr>
     <tr>
        <td align="left">
          <html:text property="activationDate" size="10" maxlength="10"/>
          <br>
          <html:messages id="message" property="activationDate">
             <bean:write name="message"/><br>
          </html:messages>
        </td>
     </tr>
  </table>

Reply via email to