Thanks for your response.
I am doing the below in Dispatch Action
ActionMessages messages = (ActionMessages)frm.validate( mapping, request );
if ( messages != null && !messages.isEmpty() ) {
saveMessages(request, messages);
return (mapping.findForward("validationFailed"));
}
Because it's Messages that I saved, probabaly have to give message="true" in
the tags logic:messagesPresent and html:messages tags. Is that right??
Thanks.
From: Laurie Harper <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: user@struts.apache.org
Subject: Re: logic:messagesPresent not working for nestedProperty
Date: Tue, 18 Jul 2006 16:41:51 -0400
It depends how the messages were generated. Struts keeps two sets of
messages: errors and general messages. The 'messages' attribute allows you
to select which set to examine.
How are you generating the messages?
L.
fea jabi wrote:
Thanks, that worked giving
messages="true" on the logic:messagesPresent and html:messages tags
But not sure when this has to be given? ActionMessages are saved have to
give this???
Thanks.
From: Laurie Harper <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: user@struts.apache.org
Subject: Re: logic:messagesPresent not working for nestedProperty
Date: Thu, 13 Jul 2006 15:39:03 -0400
Are you sure the messsges are stored as error messages? What happens if
you include messages="true" on the logic:messagesPresent and
html:messages tags?
L.
fea jabi wrote:
Validator messages are not getting displayed in JSP.
When debugged the code i.e JSP, I see the RequestAttributes does
contain the ActionErrors object and the also the messages in it.
the message has
Key is ___ "hrs[1].adHrs"
value is _____ "lbl.notvalidnumber"
have the below in the JSP
<logic:messagesPresent>
<UL>
<html:messages id="error">
<LI><bean:write name="error"/></LI>
</html:messages>
</UL>
</logic:messagesPresent>
What's missing here?
Thanks.
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]