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]

Reply via email to