Hi Tom,

Tom Tibbetts wrote:

> Hi all.  Is there example code about how to implement saveToken and
> isValidToken methods.  Core J2ee patterns gives a good talk on theory but
> they drop the ball with examples.

We cover the general theory of duplicate form submission issues and the
synchronizer token in the "Presentation Tier Design Considerations" chapter
of 'Core J2EE Patterns'.

We also include an example with source code in the "Presentation Tier
Refactorings" chapter. In fact the source code used with permission is from
Struts itself, including the 'saveToken()' and 'isTokenValid()' methods.

Hope this helps,
Dan

> Thanks in advance.  Tom

--
Dan Malks                            Sun Java Center
Enterprise Java Architect            703.208.5794


Reply via email to