Re: Can I generate a token without Action class?

2004-08-22 Thread Erik Weber
The documentation on this confuses me, so I cannot tell you whether this pattern is "correct", but it does seem to work: public class EditARecordAction extends SomeBaseAction { public static String VIEW = "viewEditForm"; public static final String UPDATE = "processEditForm"; public ActionFo

Re: Can I generate a token without Action class?

2004-08-21 Thread Ping Cheung Leung
My attention is to prevention duplicated submission. I have refered to the struts-example. It checks the valid of token by IsValidToken(). However when a form is displayed at the first time, it always is invalid. Moreover, according to the struts-example, it saveToken when it finds error. The beh

Re: Can I generate a token without Action class?

2004-08-21 Thread Michael McGrady
Ping Cheung Leung wrote: >I have a web page presented by JSP only. >No data to input. It contains several links only. > >If I click one of the links on the web page, >It will go to another web page with a form to input >data. >If I want the form to have a token generated >when the form first appe

Can I generate a token without Action class?

2004-08-21 Thread Ping Cheung Leung
I have a web page presented by JSP only. No data to input. It contains several links only. If I click one of the links on the web page, It will go to another web page with a form to input data. If I want the form to have a token generated when the form first appears. How can I code it? The proce