[ http://jira.andromda.org/browse/BPM-212?page=all ]
Bob Fields updated BPM-212:
---------------------------
Fix Version: 3.4-SNAPSHOT
(was: 3.1-RC1)
> Add struts token-like functionality
> -----------------------------------
>
> Key: BPM-212
> URL: http://jira.andromda.org/browse/BPM-212
> Project: Bpm4Struts Cartridge
> Type: Improvement
> Versions: 3.1M1
> Reporter: Lee Greiner
> Assignee: Wouter Zoons
> Priority: Minor
> Fix For: 3.4-SNAPSHOT
>
> Struts has a token feature that puts a single-use token on a form to prevent
> duplicate submits. Redirecting after post prevents duplicate submissions
> using the "back" button but will not prevent a duplicate post if a user
> submits more than once in rapid succession.
> Typically when a Struts action is going to forward to a page that will post
> information the action will call Action.saveToken(HttpServletRequest). Struts
> will then automatically add the token to the form when the <html:form> tag is
> rendered.
> When the post occurs the action should perform an
> Action.isValidToken(HttpServletRequest, true) to verify and invalidate the
> token. Any succeeding posts with the token will be cause isValidToken() to
> return false.
> I typically call Action.resetToken(HttpServletRequest) in any action that
> forwards to pages that will not alter state (session, db, ...).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects