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
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
I have heard the session token mentioned a few times. Does anyone have any examples
on when/how to use it?
Regards,
Joshua
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
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
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
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
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
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
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
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
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]
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
~~~
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
/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
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
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
[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
[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
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
[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
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
)
%
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
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
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
25 matches
Mail list logo