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?
Discussions
Web tier: servlets, JSP, Web frameworks: New Equivalent struts <html:errors property="myProperty"/> tag?
-
New Equivalent struts <html:errors property="myProperty"/> tag? (1 messages)
- Posted by: Chandhana Dias
- Posted on: February 20 2006 09:03 EST
Threaded Messages (1)
- New Equivalent struts <html:errors property="myProperty"/> by Marina Prikaschikova on February 21 2006 11:12 EST
-
New Equivalent struts <html:errors property="myProperty"/>[ Go to top ]
- Posted by: Marina Prikaschikova
- Posted on: February 21 2006 11:12 EST
- in response to Chandhana Dias
See Struts error taglib in Coldtags suite:
http://www.servletsuite.com/jsp.htm