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, ...).
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1927#1927
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to