Re: Transaction Token

2003-07-30 Thread Joshua White
And if the token is not valide, do you redirect them to an error page? manglu [EMAIL PROTECTED] wrote: The Trans token is fairly SImple Before a form is sent to the User in your action class make a saveToken(request) call. When the form is displayed on the client side there is a token

Re: Transaction Token

2003-07-30 Thread manglu
Joshua, If the token is invalid you tell the User that they might have attempted multiple submissions etc via an error page Manglu Joshua White wrote: And if the token is not valide, do you redirect them to an error page? manglu [EMAIL PROTECTED] wrote: The Trans token is fairly SImple

Transaction Token

2003-07-29 Thread Joshua White
I have heard the session token mentioned a few times. Does anyone have any examples on when/how to use it? Regards, Joshua

Re: Transaction Token

2003-07-29 Thread Dan Tran
Do a search on archive and look for transaction token. The struts-example in the distribution also uses transaction token as well -D - Original Message - From: Joshua White [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 5:12 PM Subject: Transaction Token I have

Re: Transaction Token

2003-07-29 Thread Rob Leland
Joshua White wrote: I have heard the session token mentioned a few times. Does anyone have any examples on when/how to use it? Regards, Joshua Look in the struts 'example' program. I am sure it uses it. -- - Rob Leland (703-525-3580) Choose a job you love, and you will never have to

Re: Transaction Token

2003-07-29 Thread manglu
The Trans token is fairly SImple Before a form is sent to the User in your action class make a saveToken(request) call. When the form is displayed on the client side there is a token attached which is sent along with the form on a submit by the Client When a call is received the token (sent

SUGGESTION: Transaction token creation control instruts-config.xml (LONG)

2003-03-28 Thread Steve Stair
I've got a use case to edit an existing user. I've extended the ForwardAction class to make one that forwards after creating a transaction token. When the user clicks on a link to edit a user's data, they are first sent to an action that only loads the user data into the form. This action can

Re: SUGGESTION: Transaction token creation control in struts-config.xml (LONG)

2003-03-28 Thread Igor Shabalov
Good use case! I put it into attachment... Best, Igor. On Fri, 28 Mar 2003 16:53:15 -0600, Steve Stair [EMAIL PROTECTED] wrote: I've got a use case to edit an existing user. I've extended the ForwardAction class to make one that forwards after creating a transaction token. When

Fwd: Re: SUGGESTION: Transaction token creation control in struts-config.xml (LONG)

2003-03-28 Thread Igor Shabalov
Mailing list eats the attachments, sorry... I just like this picture :-) --- Forwarded message --- From: Igor Shabalov [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: SUGGESTION: Transaction token creation control in struts- config.xml (LONG

RE: SUGGESTION: Transaction token creation control in struts-config.xml (LONG)

2003-03-28 Thread Edgar Dollin
28, 2003 6:42 PM To: 'Struts Users Mailing List' Subject: Re: SUGGESTION: Transaction token creation control in struts-config.xml (LONG) Good use case! I put it into attachment... Best, Igor. On Fri, 28 Mar 2003 16:53:15 -0600, Steve Stair [EMAIL PROTECTED

[Fwd: Transaction Token long running process ...]

2003-02-20 Thread Ted Husted
Original Message Subject: Transaction Token long running process ... Date: Thu, 20 Feb 2003 08:45:44 +0100 From: Hossfeld, Frank [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Hi Ted, I read the answer you wrote Greg Hess. And because I can't answer in the list

Transaction token documentation

2002-03-05 Thread Parimi Srinivas
a. Is there any documentation or write up avl on how transaction tokens are programmed ?. b. What is the use of generateToken method in Action class ?. Thanks, -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Transaction Token check required before form populate

2002-02-14 Thread Duncan Harris
I need my transaction token checking before my form is populated. Problem here is that I have indexed properties and the valid index range may be different at different times. When all is well, the form bean and the HTML form correspond, but if the user goes back and re-submits then they may

Re: Transaction Token check required before form populate

2002-02-14 Thread Duncan Harris
~~~ Hartford, Cheshire, U.K., Tel: 07968 060418 Looking for STRUTS contract work in the U.K. [EMAIL PROTECTED] (Duncan Harris) wrote: I need my transaction token checking before my form is populated. Problem here is that I have indexed properties and the valid index range may be different

Re: Transaction Token check required before form populate

2002-02-14 Thread Ted Husted
/struts/ Duncan Harris wrote: I need my transaction token checking before my form is populated. Problem here is that I have indexed properties and the valid index range may be different at different times. When all is well, the form bean and the HTML form correspond, but if the user goes

Re: Transaction Token check required before form populate

2002-02-14 Thread Ted Husted
transaction token checking before my form is populated. Problem here is that I have indexed properties and the valid index range may be different at different times. When all is well, the form bean and the HTML form correspond, but if the user goes back and re-submits then they may not and I can

RE: Transaction Token check required before form populate

2002-02-14 Thread Galbreath, Mark
If you simply need to prevent resubmits, set a token as a session variable, check its value on any submit, and change its value on the first submit. Cheers! Mark -- Try before you cry: http://www.mail-archive.com/struts-user%40jakarta.apache.org/ -Original Message- From: [EMAIL

Re: Transaction Token check required before form populate

2002-02-14 Thread Duncan Harris
[EMAIL PROTECTED] (Ted Husted) wrote: The usual workflow is to visit an Action before displaying the page. This gives you the opportunity to any number of things, including setting up the tokens. There is no problem setting up the token for a response. The problem is that as the request

Re: Transaction Token check required before form populate

2002-02-14 Thread Duncan Harris
[EMAIL PROTECTED] (Keith) wrote: Isn't it easy enough to test which form you came from to decide whether to call isTokenValid()? Not a problem in this respect. The problem is the URL for a GET (see below). However the URL is no longer very clean. I don't get what you mean. It contains

Re: Transaction Token check required before form populate

2002-02-14 Thread Ted Husted
The autopopulation takes place before the ActionForm gets control, so that's really not an option. The request is passed to validate, and so you could put a token checker there. That does make a certain amount of sense, since it is after all a kind of validation error. But, returning people

Re: Transaction Token check required before form populate

2002-02-14 Thread Duncan Harris
[EMAIL PROTECTED] (Ted Husted) wrote: If someone submitted a patch to bugzilla that allowed the generation of the token to be switched off on a form by form basis, I'm sure it would be considered. If I did this, it seems like a good default might be to remove the transaction token for GET

Transaction Token verified in Controller?

2002-01-25 Thread Jeff_Mychasiw
Has Anyone implemented a Token Check in the the ActionServlet and not in each action. The reason would be to prevent the unwanted back button for EVERY action. We may put this type of check into an exiting app that we have. The plan is to move this app to Struts and but we are forced to

[SOLVED] Re: Transaction Token: How can a html:form submit a forward

2001-12-21 Thread Peter Pilgrim
) % Please continue to the restart page input type=button value=Continue onclick=this.form.submit(); /form /logic:present So after a transaction token error I give the user the option to move FORWARD as well back. Going backwards usually results in the same attempt to insert the row

Transaction Token: How can a html:form submit a forward

2001-12-20 Thread Peter Pilgrim
When you transaction token invalid you normally forward to nice smiling double transaction screen and print a nice error message. You want to prevent or suggest that user not hit the [BACK] button in the browser. I would like to put a simple button Continue that forwards to the promptForm page

Transaction Token without a struts form?

2001-12-07 Thread Krueger, Jeff
All, I am working on implementing transaction token so my app can handle when the user click the back button on the web browser. Our application doesn't always use a struts form because we often have to display unknowen number of rows of data, so that doesn't map well to a form bean. So