You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/11/20 23:19:32 UTC

DO NOT REPLY [Bug 14716] - Add a method putToken() to Action class

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14716>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14716

Add a method putToken() to Action class

strutsbugs@freetocreate.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From strutsbugs@freetocreate.org  2002-11-20 22:19 -------
The whole idea of using token is to discourage the user from using,
the browser buttons.

The only time your Action is called is when the Form is
submitted. It is your Action classes that change the token.
If the user only clicks on a link, then the token
will not be saved/changed in the session because a submit
has not been performed. Then they are free to use the
'back' button, and all will work ok.

If the link has a JavaScript onclick submit,
that tells me you want Struts to process the form,
then your Action will need to handle this situation,
by differentiating between a submit by a Submit button and
a submit by a link click. You could set a hidden field
value if a "button" submit was sent as apposed to a 
link submit. However, it doesn't sound like your 'links'
are doing submits.
 If that is the case then there should be no problem.

Is this a specific problem you are encountering, or
are you in the design stage performing a what-if
analysis ?

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>