Atta, A redirect in a tile cannot possibly work (and I've tried & researched it months ago). To use a redirect in a forward, you must have a file system object to reach such as an html file, a jsp, or an application mapping (i.e. struts *.do). Since a tile is only internal to Struts, and not an external item, your tile cannot work as the server and file system would not have a ".mytileDefinition" mapped to anything concrete.
That said, you can make a JSP pull in and show a tile so your redirect can be to "showtile.jsp" with contents such as the below 2 lines: <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %> <tiles:insert beanName="someDefinition" flush="true" /> I might be off with one or two parameters of the tiles:insert because I haven't needed to do that in a long time. I just read your note about velocity tiles but since I haven't used them, I can't answer that. I suppose if you had a servlet mapping for *.vm files you could redirect to your someDefinition.vm and it would work as that is an application mapping, as I mentioned above (2nd sentence). Regards, David -----Original Message----- From: atta-ur rehman [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 5:12 PM To: Struts Users Mailing List Subject: Re: redirect="true" and Tiles; does it work? Any takers? ATTA ----- Original Message ----- From: "atta-ur rehman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, March 24, 2004 10:17 AM Subject: redirect="true" and Tiles; does it work? > Dear all, > > I've been struggling with this problem for about two days now; I hope > somebody here would be able to help me. In one of my actions I've > implemented Struts token functionality to keep user from using browser > Refresh button. Every thing works as promised except for when invalid token > message is shown and you press the Refresh button, browser pops up a message > saying that there is POSTDATA in the request do you want to sumbit; clicking > yes again calls the source action and user again ends up the invalid token > message. > > now my question is how can I get rid of this post data and browser's > confirmation message? I thought setting rediect="true" to forward should to > the trick; but it doesn't! Last night while going thru the archives, I > figured that this does work when you forward to /someAction.do or > /somePage.jsp but doesn't work for Tiles definitions!!! > > Any help would be greatly appreciated. > > here are my global forward and action mappings in the struts config file: > > <global-forwards> > <forward name="invalidToken" path="showInvalidTokenMessage.do" > redirect="true" /> > </global-forwards> > > <action path="test" class="test.TokenedAction" name="testForm"> > <forward name="success" path="greetingsTile" redirect="true" /> > </action> > > Its from within the test.TokenAction that I forward to global forward > "invalidToken". > > Again, thanks in anticipation for any help. > > ATTA > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]