You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dave Hallam <da...@yahoo.com> on 2004/05/06 17:16:17 UTC

html:error in tiles

Hi,

I've got a page which uses tiles to load another jsp as part of the
page body.  In the tiled jsp there is a form that I validate.  If I
create ActionErrors in the form validation, I can render the
<html:errors/> correctly in the main jsp page but nothing appears in
the tiled jsp (which is where I actually want the data to appear).

Can anyone help?  I know the resource is there and that the errors
are present as they appear at the top of the main page - they just
don't appear in the tile.

Thanks very much,

Dave


	
	
		
____________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: html:error in tiles

Posted by Curtis Taylor <cu...@hotmail.com>.
Hi Dave,

Tiles seem(s) to have particularly needy scoping issues. Try setting attributes 
for the particular Tile you're inserting in your .jsp, then do a <tiles:put... 
inside your <tiles:insert... for the errors you're looking for.

You may also want to consider using messages as opposed to errors, AFAIK, errors 
are or will be deprecated.

HTH (& I'm not too off-base),

Curtis

Dave Hallam wrote:
> Hi,
> 
> I've got a page which uses tiles to load another jsp as part of the
> page body.  In the tiled jsp there is a form that I validate.  If I
> create ActionErrors in the form validation, I can render the
> <html:errors/> correctly in the main jsp page but nothing appears in
> the tiled jsp (which is where I actually want the data to appear).
> 
> Can anyone help?  I know the resource is there and that the errors
> are present as they appear at the top of the main page - they just
> don't appear in the tile.
> 
> Thanks very much,
> 
> Dave
> 
> 
> 	
> 	
> 		
> ____________________________________________________________
> Yahoo! Messenger - Communicate instantly..."Ping" 
> your friends today! Download Messenger Now 
> http://uk.messenger.yahoo.com/download/index.html


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: html:error in tiles

Posted by Susan Bradeen <Su...@softlanding.com>.
Dave Hallam <da...@yahoo.com> wrote on 05/06/2004 11:16:17 AM:

> Hi,
> 
> I've got a page which uses tiles to load another jsp as part of the
> page body.  In the tiled jsp there is a form that I validate.  If I
> create ActionErrors in the form validation, I can render the
> <html:errors/> correctly in the main jsp page but nothing appears in
> the tiled jsp (which is where I actually want the data to appear).
> 
> Can anyone help?  I know the resource is there and that the errors
> are present as they appear at the top of the main page - they just
> don't appear in the tile.
>

Dave, are you using Struts 1.1? Does adding something similar to the 
following code in your JSP tile do anything?

<logic:messagesPresent>
<UL>
<html:messages id="error">
<LI><bean:write name="error"/></LI>
</html:messages>
</UL> 
</logic:messagesPresent>

Are you and Ganesh working on the same issue? :)

Hope that helps,
Susan Bradeen
 
> Thanks very much,
> 
> Dave
> 
> 
> 
> 
> 
> ____________________________________________________________
> Yahoo! Messenger - Communicate instantly..."Ping" 
> your friends today! Download Messenger Now 
> http://uk.messenger.yahoo.com/download/index.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org