Re: redirect="true" and Tiles; does it work?
I'm confused too! for invalid token message, IE show /processTest.do in the address bar. but when i click the refresh button, a quick look at the status bar show that its calling /showInvalidTokenMessage.do! Yet, refresh after refresh, IE still shows /processTest.do in the address bar. FireBird, FireFox and Netscape 7.1 show /showInvalidTokenMessage.do in the address bar but also popup the dialog to confir repost! I'm only afraid to have screwed up something real bad here :) ATTA - Original Message - From: "Hubert Rabago" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, March 24, 2004 4:13 PM Subject: Re: redirect="true" and Tiles; does it work? > > > And you're saying that with > > > "http://localhost:8080/test/showInvalidTokenMessage.do"; on the address > > bar, > > > the user clicks on refresh and causes TestProcessAction to execute again? > > > > TRUE in Mozilla FireBird 0.7!!! And that's my default browser. In between > > these messages I thought I should give IE try and on IE 6.0.2800 the action > > is not called neither do I see the confrimation message of posting again! > > > > Boils down to Browser? > > That's the way I see it. My interpretation of how it should work is the > browser should refresh the last request, and the server already told the > browser to request "/showInvalidTokenMessage.do" and in fact that's what's on > the address bar. If my interpretation is incorrect, somebody please let me > know. If this is a browser bug, maybe it's time to upgrade to Firefox 0.8. > > , > Hubert > > --- atta-ur rehman <[EMAIL PROTECTED]> wrote: > > See inline, please. > > > > - Original Message - > > From: "Hubert Rabago" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Wednesday, March 24, 2004 3:56 PM > > Subject: Re: redirect="true" and Tiles; does it work? > > > > > > > Is this correct? > > > > > > 1. User submits the form to /processTest.do > > > > TRUE. > > > > > > 2. The action for /processTest.do, TestProcessAction, sees that the token > > is > > > invalid and returns an ActionForward that redirects to > > > /showInvalidTokenMessage.do > > > > Actually to mapping.findForward("invalidToken") which is global forward to > > /showInvalidTokenMessage.do. So I assume the answer is TRUE; though i'm not > > sure. > > > > > > > > 3. "/showInvalidTokenMessage.do" forwards to the > > "invalidTokenMessageTile" > > > tile, at which time the browser shows > > > "http://localhost:8080/test/showInvalidTokenMessage.do"; on the address > > bar > > > > TRUE. > > > > > > > > 4. The user sees the "invalidTokenMessageTile" tile and clicks on refresh > > > > > > And you're saying that with > > > "http://localhost:8080/test/showInvalidTokenMessage.do"; on the address > > bar, > > > the user clicks on refresh and causes TestProcessAction to execute again? > > > > TRUE in Mozilla FireBird 0.7!!! And that's my default browser. In between > > these messages I thought I should give IE try and on IE 6.0.2800 the action > > is not called neither do I see the confrimation message of posting again! > > > > Boils down to Browser? > > > > > > > > > > > __ > Do you Yahoo!? > Yahoo! Finance Tax Center - File online. File on time. > http://taxes.yahoo.com/filing.html > > - > 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]
Re: redirect="true" and Tiles; does it work?
> > And you're saying that with > > "http://localhost:8080/test/showInvalidTokenMessage.do"; on the address > bar, > > the user clicks on refresh and causes TestProcessAction to execute again? > > TRUE in Mozilla FireBird 0.7!!! And that's my default browser. In between > these messages I thought I should give IE try and on IE 6.0.2800 the action > is not called neither do I see the confrimation message of posting again! > > Boils down to Browser? That's the way I see it. My interpretation of how it should work is the browser should refresh the last request, and the server already told the browser to request "/showInvalidTokenMessage.do" and in fact that's what's on the address bar. If my interpretation is incorrect, somebody please let me know. If this is a browser bug, maybe it's time to upgrade to Firefox 0.8. , Hubert --- atta-ur rehman <[EMAIL PROTECTED]> wrote: > See inline, please. > > - Original Message - > From: "Hubert Rabago" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Wednesday, March 24, 2004 3:56 PM > Subject: Re: redirect="true" and Tiles; does it work? > > > > Is this correct? > > > > 1. User submits the form to /processTest.do > > TRUE. > > > > 2. The action for /processTest.do, TestProcessAction, sees that the token > is > > invalid and returns an ActionForward that redirects to > > /showInvalidTokenMessage.do > > Actually to mapping.findForward("invalidToken") which is global forward to > /showInvalidTokenMessage.do. So I assume the answer is TRUE; though i'm not > sure. > > > > > 3. "/showInvalidTokenMessage.do" forwards to the > "invalidTokenMessageTile" > > tile, at which time the browser shows > > "http://localhost:8080/test/showInvalidTokenMessage.do"; on the address > bar > > TRUE. > > > > > 4. The user sees the "invalidTokenMessageTile" tile and clicks on refresh > > > > And you're saying that with > > "http://localhost:8080/test/showInvalidTokenMessage.do"; on the address > bar, > > the user clicks on refresh and causes TestProcessAction to execute again? > > TRUE in Mozilla FireBird 0.7!!! And that's my default browser. In between > these messages I thought I should give IE try and on IE 6.0.2800 the action > is not called neither do I see the confrimation message of posting again! > > Boils down to Browser? > > > > > __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: redirect="true" and Tiles; does it work?
I can confirm the stated behavior for both Mozilla FireFox 0.8 and Netscape 7.1 too. - Original Message - From: "atta-ur rehman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, March 24, 2004 4:15 PM Subject: Re: redirect="true" and Tiles; does it work? > I'm sorry, I spoke too soon: > > > > 3. "/showInvalidTokenMessage.do" forwards to the > "invalidTokenMessageTile" > > > tile, at which time the browser shows > > > "http://localhost:8080/test/showInvalidTokenMessage.do"; on the address > bar > > TRUE in Mozilla FireBird 0.7. In IE 6.0 I still see /processTest.do! > > > - Original Message - > From: "atta-ur rehman" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Wednesday, March 24, 2004 4:11 PM > Subject: Re: redirect="true" and Tiles; does it work? > > > > See inline, please. > > > > ----- Original Message - > > From: "Hubert Rabago" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Wednesday, March 24, 2004 3:56 PM > > Subject: Re: redirect="true" and Tiles; does it work? > > > > > > > Is this correct? > > > > > > 1. User submits the form to /processTest.do > > > > TRUE. > > > > > > 2. The action for /processTest.do, TestProcessAction, sees that the > token > > is > > > invalid and returns an ActionForward that redirects to > > > /showInvalidTokenMessage.do > > > > Actually to mapping.findForward("invalidToken") which is global forward to > > /showInvalidTokenMessage.do. So I assume the answer is TRUE; though i'm > not > > sure. > > > > > > > > 3. "/showInvalidTokenMessage.do" forwards to the > "invalidTokenMessageTile" > > > tile, at which time the browser shows > > > "http://localhost:8080/test/showInvalidTokenMessage.do"; on the address > bar > > > > TRUE. > > > > > > > > 4. The user sees the "invalidTokenMessageTile" tile and clicks on > refresh > > > > > > And you're saying that with > > > "http://localhost:8080/test/showInvalidTokenMessage.do"; on the address > > bar, > > > the user clicks on refresh and causes TestProcessAction to execute > again? > > > > TRUE in Mozilla FireBird 0.7!!! And that's my default browser. In between > > these messages I thought I should give IE try and on IE 6.0.2800 the > action > > is not called neither do I see the confrimation message of posting again! > > > > Boils down to Browser? > > > > > > > > > > > --- atta-ur rehman <[EMAIL PROTECTED]> wrote: > > > > http://localhost:8080/test/processTest.do > > > > and if and press Refresh here the url changes to: > > > > http://localhost:8080/test/showInvalidTokenMessage.do > > > > > > > > ATTA > > > > - Original Message - > > > > From: "Hubert Rabago" <[EMAIL PROTECTED]> > > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > > Sent: Wednesday, March 24, 2004 3:07 PM > > > > Subject: Re: redirect="true" and Tiles; does it work? > > > > > > > > > > > > > > > > > > --- atta-ur rehman <[EMAIL PROTECTED]> wrote: > > > > > > TestProcessAction just forwards to "success" forward. But before > it > > > > does > > > > > > that it check for the valid token and in the case of an invalid > > token > > > > it > > > > > > just forwards (redirects) to the "invalidToken" global forward. > > > > > > > > > > > > On invalid token message press refresh again calls the test action > > with > > > > the > > > > > > browser confirmation. > > > > > > > > > > After the redirect and before pressing refresh, what's the URL shown > > on > > > > the > > > > > browser? > > > > > > > > > __ > > > Do you Yahoo!? > > > Yahoo! Finance Tax Center - File online. File on time. > > > http://taxes.yahoo.com/filing.html > > > > > > - > > > 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] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: redirect="true" and Tiles; does it work?
I'm sorry, I spoke too soon: > > 3. "/showInvalidTokenMessage.do" forwards to the "invalidTokenMessageTile" > > tile, at which time the browser shows > > "http://localhost:8080/test/showInvalidTokenMessage.do"; on the address bar TRUE in Mozilla FireBird 0.7. In IE 6.0 I still see /processTest.do! - Original Message - From: "atta-ur rehman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, March 24, 2004 4:11 PM Subject: Re: redirect="true" and Tiles; does it work? > See inline, please. > > - Original Message - > From: "Hubert Rabago" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Wednesday, March 24, 2004 3:56 PM > Subject: Re: redirect="true" and Tiles; does it work? > > > > Is this correct? > > > > 1. User submits the form to /processTest.do > > TRUE. > > > > 2. The action for /processTest.do, TestProcessAction, sees that the token > is > > invalid and returns an ActionForward that redirects to > > /showInvalidTokenMessage.do > > Actually to mapping.findForward("invalidToken") which is global forward to > /showInvalidTokenMessage.do. So I assume the answer is TRUE; though i'm not > sure. > > > > > 3. "/showInvalidTokenMessage.do" forwards to the "invalidTokenMessageTile" > > tile, at which time the browser shows > > "http://localhost:8080/test/showInvalidTokenMessage.do"; on the address bar > > TRUE. > > > > > 4. The user sees the "invalidTokenMessageTile" tile and clicks on refresh > > > > And you're saying that with > > "http://localhost:8080/test/showInvalidTokenMessage.do"; on the address > bar, > > the user clicks on refresh and causes TestProcessAction to execute again? > > TRUE in Mozilla FireBird 0.7!!! And that's my default browser. In between > these messages I thought I should give IE try and on IE 6.0.2800 the action > is not called neither do I see the confrimation message of posting again! > > Boils down to Browser? > > > > > > > --- atta-ur rehman <[EMAIL PROTECTED]> wrote: > > > http://localhost:8080/test/processTest.do > > > and if and press Refresh here the url changes to: > > > http://localhost:8080/test/showInvalidTokenMessage.do > > > > > > ATTA > > > - Original Message - > > > From: "Hubert Rabago" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > Sent: Wednesday, March 24, 2004 3:07 PM > > > Subject: Re: redirect="true" and Tiles; does it work? > > > > > > > > > > > > > > --- atta-ur rehman <[EMAIL PROTECTED]> wrote: > > > > > TestProcessAction just forwards to "success" forward. But before it > > > does > > > > > that it check for the valid token and in the case of an invalid > token > > > it > > > > > just forwards (redirects) to the "invalidToken" global forward. > > > > > > > > > > On invalid token message press refresh again calls the test action > with > > > the > > > > > browser confirmation. > > > > > > > > After the redirect and before pressing refresh, what's the URL shown > on > > > the > > > > browser? > > > > > > __ > > Do you Yahoo!? > > Yahoo! Finance Tax Center - File online. File on time. > > http://taxes.yahoo.com/filing.html > > > > - > > 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]
Re: redirect="true" and Tiles; does it work?
See inline, please. - Original Message - From: "Hubert Rabago" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, March 24, 2004 3:56 PM Subject: Re: redirect="true" and Tiles; does it work? > Is this correct? > > 1. User submits the form to /processTest.do TRUE. > > 2. The action for /processTest.do, TestProcessAction, sees that the token is > invalid and returns an ActionForward that redirects to > /showInvalidTokenMessage.do Actually to mapping.findForward("invalidToken") which is global forward to /showInvalidTokenMessage.do. So I assume the answer is TRUE; though i'm not sure. > > 3. "/showInvalidTokenMessage.do" forwards to the "invalidTokenMessageTile" > tile, at which time the browser shows > "http://localhost:8080/test/showInvalidTokenMessage.do"; on the address bar TRUE. > > 4. The user sees the "invalidTokenMessageTile" tile and clicks on refresh > > And you're saying that with > "http://localhost:8080/test/showInvalidTokenMessage.do"; on the address bar, > the user clicks on refresh and causes TestProcessAction to execute again? TRUE in Mozilla FireBird 0.7!!! And that's my default browser. In between these messages I thought I should give IE try and on IE 6.0.2800 the action is not called neither do I see the confrimation message of posting again! Boils down to Browser? > > > --- atta-ur rehman <[EMAIL PROTECTED]> wrote: > > http://localhost:8080/test/processTest.do > > and if and press Refresh here the url changes to: > > http://localhost:8080/test/showInvalidTokenMessage.do > > > > ATTA > > - Original Message - > > From: "Hubert Rabago" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Wednesday, March 24, 2004 3:07 PM > > Subject: Re: redirect="true" and Tiles; does it work? > > > > > > > > > > --- atta-ur rehman <[EMAIL PROTECTED]> wrote: > > > > TestProcessAction just forwards to "success" forward. But before it > > does > > > > that it check for the valid token and in the case of an invalid token > > it > > > > just forwards (redirects) to the "invalidToken" global forward. > > > > > > > > On invalid token message press refresh again calls the test action with > > the > > > > browser confirmation. > > > > > > After the redirect and before pressing refresh, what's the URL shown on > > the > > > browser? > > > __ > Do you Yahoo!? > Yahoo! Finance Tax Center - File online. File on time. > http://taxes.yahoo.com/filing.html > > - > 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]
Re: redirect="true" and Tiles; does it work?
Is this correct? 1. User submits the form to /processTest.do 2. The action for /processTest.do, TestProcessAction, sees that the token is invalid and returns an ActionForward that redirects to /showInvalidTokenMessage.do 3. "/showInvalidTokenMessage.do" forwards to the "invalidTokenMessageTile" tile, at which time the browser shows "http://localhost:8080/test/showInvalidTokenMessage.do"; on the address bar 4. The user sees the "invalidTokenMessageTile" tile and clicks on refresh And you're saying that with "http://localhost:8080/test/showInvalidTokenMessage.do"; on the address bar, the user clicks on refresh and causes TestProcessAction to execute again? --- atta-ur rehman <[EMAIL PROTECTED]> wrote: > http://localhost:8080/test/processTest.do > > and if and press Refresh here the url changes to: > http://localhost:8080/test/showInvalidTokenMessage.do > > ATTA > - Original Message - > From: "Hubert Rabago" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Wednesday, March 24, 2004 3:07 PM > Subject: Re: redirect="true" and Tiles; does it work? > > > > > > --- atta-ur rehman <[EMAIL PROTECTED]> wrote: > > > TestProcessAction just forwards to "success" forward. But before it > does > > > that it check for the valid token and in the case of an invalid token > it > > > just forwards (redirects) to the "invalidToken" global forward. > > > > > > On invalid token message press refresh again calls the test action with > the > > > browser confirmation. > > > > After the redirect and before pressing refresh, what's the URL shown on > the > > browser? __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: redirect="true" and Tiles; does it work?
http://localhost:8080/test/processTest.do and if and press Refresh here the url changes to: http://localhost:8080/test/showInvalidTokenMessage.do ATTA - Original Message - From: "Hubert Rabago" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, March 24, 2004 3:07 PM Subject: Re: redirect="true" and Tiles; does it work? > > --- atta-ur rehman <[EMAIL PROTECTED]> wrote: > > TestProcessAction just forwards to "success" forward. But before it does > > that it check for the valid token and in the case of an invalid token it > > just forwards (redirects) to the "invalidToken" global forward. > > > > On invalid token message press refresh again calls the test action with the > > browser confirmation. > > After the redirect and before pressing refresh, what's the URL shown on the > browser? > > > __ > Do you Yahoo!? > Yahoo! Finance Tax Center - File online. File on time. > http://taxes.yahoo.com/filing.html > > - > 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]
Re: redirect="true" and Tiles; does it work?
--- atta-ur rehman <[EMAIL PROTECTED]> wrote: > TestProcessAction just forwards to "success" forward. But before it does > that it check for the valid token and in the case of an invalid token it > just forwards (redirects) to the "invalidToken" global forward. > > On invalid token message press refresh again calls the test action with the > browser confirmation. After the redirect and before pressing refresh, what's the URL shown on the browser? __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: redirect="true" and Tiles; does it work?
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" %> 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: > > > redirect="true" /> > > > > > > > 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]
Re: redirect="true" and Tiles; does it work?
Oh, thanks, Hubert. In the mentioned last night archive brwosing I remember seeing your post on the topic; I think we can make it happen!!! I should have copied these lines from config file instead of using my head: action path="/processTest" type="com.open.webapp.test.TestProcessAction" name="testForm" input="testTile" scope="request"> TestProcessAction just forwards to "success" forward. But before it does that it check for the valid token and in the case of an invalid token it just forwards (redirects) to the "invalidToken" global forward. On invalid token message press refresh again calls the test action with the browser confirmation. Does it make better sense now? Thanks for your help. ATTA - Original Message - From: "Hubert Rabago" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, March 24, 2004 2:13 PM Subject: Re: redirect="true" and Tiles; does it work? > > --- atta-ur rehman <[EMAIL PROTECTED]> wrote: > > Any takers? > > > > I'll give it a shot. > > > ATTA > > > > - Original Message - > > From: "atta-ur rehman" <[EMAIL PROTECTED]> > > > > > > > > > > redirect="true" /> > > > > > I believe the path should begin with "/". This should mean you have an > somewhere in the same module. > > > > > > > > > > > > > > > > > > Are you using this "success" forward as well? You're redirecting to a tile > definition? Not sure how that would work. > > > > Its from within the test.TokenAction that I forward to global forward > > > "invalidToken". > > > > > > Again, thanks in anticipation for any help. > > > > > > ATTA > > > Hubert > > > __ > Do you Yahoo!? > Yahoo! Finance Tax Center - File online. File on time. > http://taxes.yahoo.com/filing.html > > - > 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]
Re: redirect="true" and Tiles; does it work?
--- atta-ur rehman <[EMAIL PROTECTED]> wrote: > Any takers? > I'll give it a shot. > ATTA > > - Original Message - > From: "atta-ur rehman" <[EMAIL PROTECTED]> > > > > > > redirect="true" /> > > I believe the path should begin with "/". This should mean you have an somewhere in the same module. > > > > > > > > > > Are you using this "success" forward as well? You're redirecting to a tile definition? Not sure how that would work. > > Its from within the test.TokenAction that I forward to global forward > > "invalidToken". > > > > Again, thanks in anticipation for any help. > > > > ATTA Hubert __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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: > > > redirect="true" /> > > > > > > > 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]