ganesh g <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to