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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to