use logic:messagesPresent and set "property" to the name of the field
you are validating e.g.
<logic:messagesPresent property="nickName">
Error ! <html:errors property="nickName"/>
</logic:messagesPresent>
The messagesPresent tag will evaluate to true if there is a validation
error for nickName, and there are (error) messages for "nickName".
Notice html:errors tag, the "property" is set to the same field (i.e.
nickName), and this will display the error text defined in your
.properties file.
Regards,
Muhammad Momnin Rashid
Vinicius Caldeira Carvalho wrote:
Hello there! Which one is the name of the property that validator form
saves its errors? I tried everthing. I can't use <html:errors/> cause
diferent parts of screen show diferent errrors types.
Here's what I've tried:
<logic:messagesPresent message="false"
property="org.apache.struts.action.ERROR">
<html:messages id="error" message="false"
property="org.apache.struts.action.ERROR">
<LABEL class='errors'><bean:write
name="error" /></LABEL>
</html:messages>
</logic:messagesPresent>
Also tried org.apache.struts.action.GLOBAL_ERROR
org.apache.struts.action.GLOBAL_MESSAGE
org.apache.struts.action.MESSAGE
Nothing works. Please any help!
Struts 1.2.2
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]