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 19:24:19 UTC
DO NOT REPLY [Bug 14716] New: -
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
Summary: Add a method putToken() to Action class
Product: Struts
Version: 1.1 Beta 2
Platform: All
OS/Version: All
Status: NEW
Severity: Enhancement
Priority: Other
Component: Controller
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: afu@ford.com
Action has saveToken() which always save a new token in session. But a new
token is only needed when transaction is submitted. Consider the situation a
user inputs half way on a page that has a transaction token, and clicks a link
to another page to look at some information, and then uses back button to come
back to the first page. If both pages used saveToken(), then the user can not
submit transaction from first page anymore because a new token was saved in the
session.
putToken() will check whether transaction token exists. It saves a new token in
the session only when one does not already exist. In the above situation, if
putToken() is used, the 2nd page will get the same transaction token as the 1st
page, and the user can still submit from the 1st page.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>