On 11/20/2003 11:44 AM Raphaël di Cicco wrote:
I understand how tokens work. I'm currently modifying my application to use tokens
every time possible. The thing is that I'm doing validation with javascript on my
JSPs, and very often checking form elements with the index.
When using token, struts
Is there a complete end-to-end example of proper saveToken() isTokenValid() usage
anywhere? (there should be)
Regards,
Rich
-Original Message-
From: Jason Lea [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 10:16 PM
To: Struts Users Mailing List
Subject: Re: Tokens
Am Freitag, 21. November 2003 16:46 schrieb Richard J. Duncan:
Is there a complete end-to-end example of proper saveToken()
isTokenValid() usage anywhere? (there should be)
Check out the Struts Example application that comes with
Struts. Then, tokens are explained best in Struts in Action
(one
[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 10:48 AM
Subject: Re: tokens creating a field in my forms
On 11/20/2003 11:44 AM Raphaël di Cicco wrote:
I understand how tokens work. I'm currently modifying my application to
use tokens every time possible. The thing is that I'm doing validation
Mailing List
Subject: Re: Tokens
hi Ramadoss
Thanks for your help. But this is not i m looking for.
I may not be able to explain my question proeprly .
But i m looking for saveTOken() method implementation in struts which does
not allow duplicate entry of records into the database when the user
Mailing List
Subject: Re: Tokens
hi Ramadoss
Thanks for your help. But this is not i m looking for.
I may not be able to explain my question proeprly .
But i m looking for saveTOken() method implementation in struts which does
not allow duplicate entry of records into the database when
19, 2003 11:19 PM
To: Struts Users Mailing List
Subject: Re: Tokens
hi Ramadoss
Thanks for your help. But this is not i m looking for.
I may not be able to explain my question proeprly .
But i m looking for saveTOken() method implementation in struts which does
not allow duplicate entry of records
PROTECTED]
Sent: Wednesday, November 19, 2003 11:19 PM
To: Struts Users Mailing List
Subject: Re: Tokens
hi Ramadoss
Thanks for your help. But this is not i m looking for.
I may not be able to explain my question proeprly .
But i m looking for saveTOken() method implementation in struts
Hi Gurpreet,
If what I understand is correct from your question, you can use split function
the same way as you use String Token...following is sample snap shot
String str = botherouioero:and:foroffo:mar:ssod:slave;
String[] arr = str.split(:, 9);
.
- Original Message -
From: Ramadoss Chinnakuzhandai [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 7:56 PM
Subject: RE: Tokens
Hi Gurpreet,
If what I understand is correct from your question, you can use
split function the same
The set-property applies to the ActionMapping, not the Action. You can
subclass ActionMapping and add a useToken property to it. Then the
action entity will need the className attribute set to your
ActionMapping subclass.
action className=com.blah.MyActionMapping path=blah...
set-property
(request)
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
Sent: January 30, 2003 12:28 PM
To: Struts Users Mailing List
Subject: RE: tokens and set-property
The set-property
The basic idea for the use of token is to deny duplicate request
submissions.
How do we use it?
When the user goes to a form for the first time, the saveToken methods needs
to be called, this will create a token in the user's session and a matching
request token in the request object which will
I think I will do just that. Mind you, then I´ll redirect everyone to my
page :-P.
Regards,
Michael
- Original Message -
From: Andrew Hill [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 10, 2002 4:29 AM
Subject: RE: [Tokens][2] Where can I
LOL! That's ... that's ... LOL :-) Thanks for the good laugh ;-)
Andrew Hill wrote:
As Mozilla is open source, perhaps you could create an extended version of
it that supports your requirements and force your users to use that?
;-)
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
ok, I found this which pretty much helped me understand what is going on:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg35501.html
However I still have a problem:
In my showProductsAction I have the line: saveToken(request);
Then next option would be to click add to cart in
() test would fail.
Craig
-Original Message-
From: Michael Delamere [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 17:25
To: Struts Users Mailing List
Subject: Re: [Tokens] Where can I find more information
ok, I found this which pretty much helped me understand what
Hi Andrew,
The generateToken method in Action.java generates a unique token each time
saveToken is called.
Jon Ridgway
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: 09 September 2002 10:23
To: Struts Users Mailing List
Subject: RE: [Tokens][2] Where can I find
2002 11:00
To: 'Struts Users Mailing List'
Subject: RE: [Tokens][2] Where can I find more information
Hi Andrew,
The generateToken method in Action.java generates a unique token each time
saveToken is called.
Jon Ridgway
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED
]]
Sent: Monday, September 09, 2002 18:09
To: 'Struts Users Mailing List'
Subject: RE: [Tokens][2] Where can I find more information
Hi Andrew,
Read your post properly this time; umm good point the same key is used and
one would over right the over, invalidating the first... So yes it looks
Mailing List [EMAIL PROTECTED]
Sent: Monday, September 09, 2002 12:21 PM
Subject: RE: [Tokens][2] Where can I find more information
Yep. Thats what I thought. :-(
There are actually quite a few things in struts that seem to have this
issue
in relation to constant session keys.
Single browser
PROTECTED]]
Sent: Monday, September 09, 2002 18:40
To: Struts Users Mailing List
Subject: Re: [Tokens][2] Where can I find more information
Of course its only a problem if one tries to accomodate multitasking
users,
so if users can be trained not to play silly buggers with multiple windows
09, 2002 12:36 PM
Subject: RE: [Tokens][2] Where can I find more information
I guess the real trick would be to eliminate the users altogether, as they
seem to be the source of most problems.
hehe. Maybe I should try and divert the [OT] JavaScript auto-submit form
thread to this dicussing
Subject: Re: [Tokens][2] Where can I find more information
I don´t quite agree (sorry) because I want to solve the problem without
javascript. I hate javascript and always try to do without it :-)
Regards,
Michael
- Original Message -
From: Andrew Hill [EMAIL PROTECTED
.
Id be interested to hear how other people approach these issues. Any
comments?
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 18:21
To: Struts Users Mailing List
Subject: RE: [Tokens][2] Where can I find more information
Yep. Thats
18:57
To: Struts Users Mailing List
Subject: Re: [Tokens][2] Where can I find more information
I don´t quite agree (sorry) because I want to solve the problem without
javascript. I hate javascript and always try to do without it :-)
Regards,
Michael
- Original Message -
From
ok, sod the users, who needs them anyway :-)
- Original Message -
From: Andrew Hill [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, September 09, 2002 12:49 PM
Subject: RE: [Tokens][2] Where can I find more information
Yeh. Good point.
Mind you
Unfortunately, there isn't always a non-JavaScript solution ;-) What do
you do with requirements that can only be implemented with JavaScript?
Regards :-)
Eddie
Michael Delamere wrote:
I don´t quite agree (sorry) because I want to solve the problem without
javascript. I hate javascript and
:22 PM
Subject: Re: [Tokens][2] Where can I find more information
Unfortunately, there isn't always a non-JavaScript solution ;-) What do
you do with requirements that can only be implemented with JavaScript?
Regards :-)
Eddie
Michael Delamere wrote:
I don´t quite agree (sorry
-
From: Michael Delamere [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 6:57 AM
To: Struts Users Mailing List
Subject: Re: [Tokens][2] Where can I find more information
I don´t quite agree (sorry) because I want to solve the problem without
javascript. I hate javascript and always try
'
Subject: RE: [Tokens][2] Where can I find more information
I might be mistaken but isn't that what is supposed to happen?
snip
===
if (isTokenValid(request, true)) {
System.out.println(TOKEN IS VALID);
}
else {
System.out.println(TOKEN
hi Jon,
My Bad... Just checked the api and looks like you are right.
-Kris
-Original Message-
From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 10:49 AM
To: 'Struts Users Mailing List'
Subject: RE: [Tokens][2] Where can I find more information
Hi Kris
: Dhulipala, Kris [mailto:[EMAIL PROTECTED]]
Sent: 09 September 2002 15:34
To: 'Struts Users Mailing List'
Subject: RE: [Tokens][2] Where can I find more information
I might be mistaken but isn't that what is supposed to happen?
snip
===
if (isTokenValid(request, true
: Re: [Tokens][2] Where can I find more information
Unfortunately, there isn't always a non-JavaScript solution ;-) What do
you do with requirements that can only be implemented with JavaScript?
Regards :-)
Eddie
Michael Delamere wrote:
I don´t quite agree (sorry) because I want to solve
Knee
-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 01, 2001 2:01 AM
To: Struts Users Mailing List
Subject: Re: Tokens
see the example app - they're used to track if the form has
already been
submitted and such (back button and reload
see the example app - they're used to track if the form has already been
submitted and such (back button and reload button issues).
--- Stanley Struts [EMAIL PROTECTED] wrote:
Hi, what are tokens? Do any of you have a link of a
page that discusses what are tokens and what is there
use?
Title: Message
one
would typically use tokens as a means to prevent the user from submitting a page
twice when it is undesirable to do so...if u would like more info and some
examples let me know
-Original Message-From: Steven Leija
[mailto:[EMAIL PROTECTED]]Sent: Wednesday,
I'm interested for the code. Can you send me an examples please.
Thank you very much
-Original Message-
From: Dudley Butt@i-Commerce
Sent: Thu 8/30/2001 10:45 AM
To: '[EMAIL PROTECTED]'
Cc:
Subject: RE: Tokens
38 matches
Mail list logo