struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Griffith, Michael *" <Michael.Griff...@fda.hhs.gov>
Subject RE: <s:action/> redirect does not work with Tiles.
Date Fri, 08 Aug 2008 13:21:39 GMT
Jeromy, 

Thanks for the replies.

>>In cases where I've needed this behaviour I've referenced the JSP 
>>instead of a Tile.

Do you mean your result redirects to a JSP instead of a struts action?

MG


-----Original Message-----
From: Jeromy Evans [mailto:jeromy.evans@blueskyminds.com.au] 
Sent: Friday, August 08, 2008 6:40 AM
To: Struts Users Mailing List
Subject: Re: <s:action/> redirect does not work with Tiles.

Griffith, Michael * wrote:
> Hello All, 
>
>  
>
> I cannot make <s:action/> result go to a new page.  Chaining the
result
> does work, but the response shows my entire tile set showing up in the
> inside tile, which is not what I want either.
>
>   

Assuming Struts2, the s:action tag can only execute an action and 
execute where that result can be included within the current 
outputstream (eg. including a JSP fragment).

I redirect result makes no sense in this context as the output stream is

already open and written to.

I can confirm that a Tiles result (Struts2 result of type tiles) does 
not work in this context either as it throws an exception that the 
outputstream has already been opened (or something like that; I can't 
recall exactly but it's in JIRA somewhere under the Tiles2 plugin).

In cases where I've needed this behaviour I've referenced the JSP 
instead of a Tile.

Hope that helps,
Jeromy Evans


---------------------------------------------------------------------
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


Mime
View raw message