You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by fea jabi <zy...@hotmail.com> on 2006/07/12 21:08:28 UTC
logic:messagesPresent not working
have the below in the JSP
<logic:messagesPresent>
<UL>
<html:messages id="error">
<LI><bean:write name="error"/></LI>
</html:messages>
</UL>
</logic:messagesPresent>
When debugged the code i.e JSP, I see the RequestAttributes does contain the
ActionErrors object and the also the messages in it.
But doesn't display the message. It executes <logic:messagesPresent> then
going to </logic:messagesPresent> statement directly.
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: logic:messagesPresent not working for nestedProperty
Posted by Laurie Harper <la...@holoweb.net>.
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.
>>
>> _________________________________________________________________
>> Don’t just search. Find. Check out the new MSN Search!
>> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
> _________________________________________________________________
> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: logic:messagesPresent not working for nestedProperty
Posted by fea jabi <zy...@hotmail.com>.
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: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
_________________________________________________________________
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org