New Equivalent struts <html:errors property="myProperty"/> tag?

Discussions

Web tier: servlets, JSP, Web frameworks: New Equivalent struts <html:errors property="myProperty"/> tag?

  1. I'm now using the ActionMessages system in struts which means I can't use the html:errors tag in the jsp to display errors, more particularly my problem is that I want to display the error pertaining to a particular attribute/textfield right next to it. This was do-able previously with the html:errors tag by specifying the property tag. How do I do this now? All i can do now is display a list of errors by doing the following:

    <logic:messagesPresent message="true">
      <html:messages id="error" message="true">
        <bean:write name="error"/><br/>
      </html:messages>
    </logic:messagesPresent>

    Any suggestions?
  2. See Struts error taglib in Coldtags suite:
    http://www.servletsuite.com/jsp.htm