Here's my problem:
I have 2 types of errors in my system (general are displayed on top of page, detailed in front of each property)
So this is a typical piece of code:
ActionErrors errors = new ActionErrors();
errors.add("org.struts.action.ERROR",new ActionMessage("general.error"); //this shall be displayed on top
errors.add("invalidUser", newActionMessage("user.invalid"));
saveErrors(errors,request);
so here's my jsp :
<logic:messagesPresent message="false" property="org.apache.struts.action.ERROR">
<html:messages message="false" property="org.apache.struts.action.ERROR" id="error">
<bean:write name="error"/>
</html:messages>
</logic:messagesPresent>
and then <html:text property="username"/><html:errors property="invalidUser"/>
Well this works for this case, but when my ValidtorForm puts messages to the error stack they are not displayed.
So I cameup with this stupid idea :
<html:errors name="org.apache.struts.action.ERROR"/>
the code in front of the text field remains the same. And now, I've got the invalid username error displayed twice ...
I've got on a dead end. How can I combine ValidatorForm errors + my custom errors messages?
This issue is causing a really big problem.
Best regards
Vinicius
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]