You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ganesh g <ga...@yahoo.com> on 2004/05/07 11:06:28 UTC
html:messages ..bean:write not displaying.urgent
Hi Friends!
i'm using tiles where i want to get html:errors from properties file.
But i'm not getting.
i'm adding and saving errors in action class only.And errors are not specific to any property but those are global using GLOBAL_MESSAGE.
i'm sure that messages are available in properties file.
Please anybody tell me how to make settings in tiles layout.
awaiting ur reply
Ganesh
---------------------------------
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
Re: how to get html:errors in tiles.urgent pls
Posted by Susan Bradeen <Su...@softlanding.com>.
ganesh g <ga...@yahoo.com> wrote on 05/07/2004 05:08:13 AM:
>
> Hi Friends!
>
> i'm using tiles where i want to get html:errors from properties file.
>
> But i'm not getting.
>
> i'm adding and saving errors in action class only.And errors are not
> specific to any property but those are global using GLOBAL_MESSAGE.
>
> i'm sure that messages are available in properties file.
>
> Please anybody tell me how to make settings in tiles layout in detail.,
>
Ganesh,
Without more specifics its hard to help. Are you saying that you want to
access the errors object in a tiles definition (tiles-def.xml)? If so,
I've not done that.
However, if you want errors to display in a JSP (which is a tile), then in
Struts 1.1 something like the following should work for you.
In your action:
ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError("error.something"));
saveErrors(request, errors);
In your JSP tile:
<logic:messagesPresent>
<UL>
<html:messages id="error">
<LI><bean:write name="error"/></LI>
</html:messages>
</UL>
</logic:messagesPresent>
Hope that helps,
Susan Bradeen
> awaiting ur reply
>
> Ganesh
>
>
> ---------------------------------
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
how to get html:errors in tiles.urgent pls
Posted by ganesh g <ga...@yahoo.com>.
Hi Friends!
i'm using tiles where i want to get html:errors from properties file.
But i'm not getting.
i'm adding and saving errors in action class only.And errors are not specific to any property but those are global using GLOBAL_MESSAGE.
i'm sure that messages are available in properties file.
Please anybody tell me how to make settings in tiles layout in detail.,
awaiting ur reply
Ganesh
---------------------------------
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs