[Opensource] Struts transaction token
Peter A. J. Pilgrim
peterp at xenonsoft.demon.co.uk
Mon Dec 9 19:05:14 PST 2002
Hi
Did you somebody already check into Expresso CVS compatible changes
that allowed a controller to generate and reset transaction tokens?
What was the issue there? The actual methods are part of the
`org.apache.struts.action.Action'
void saveToken( HttpServletRequest request )
void resetToken( HttpServletRequest request )
boolean isTokenValid( HttpServletRequest request )
Since the `com.jcorporate.expresso.core.controller.Controller'
is a direct subclass of a Struts `Action', it would be trival
to create equivalent methods.
void saveToken( ControllerRequest req )
throws ControllerException
void resetToken( ControllerRequest req )
throws ControllerException
boolean isTokenValid( ControllerRequest req )
throws ControllerException
The only problem is that Controller can be run outside
a webapp environment, hence I could throw an Exception
or silent write dummy methods in "ControllerRequest.java"
and the real code would appear "ServletControllerRequest.java"
Has any one written this code? If not I will add this tomorrow night
because it trival.
--
Peter Pilgrim
ServerSide Java Specialist
My on-line resume and for interview videos about myself, J2EE
Open Source, Struts and Expresso.
||
\\===> `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''
More information about the Opensource
mailing list