Re: tokens creating a field in my forms

2003-11-21 Thread Adam Hardy
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

RE: Tokens

2003-11-21 Thread Richard J. Duncan
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

Re: Tokens

2003-11-21 Thread Christian Bollmeyer
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

Re: tokens creating a field in my forms

2003-11-21 Thread Raphaël di Cicco
[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

RE: Tokens

2003-11-20 Thread Mainguy, Mike
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

Re: Tokens

2003-11-20 Thread Geeta Ramani
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

Re: Tokens

2003-11-20 Thread Jason Lea
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

Re: Tokens

2003-11-20 Thread Geeta Ramani
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

RE: Tokens

2003-11-19 Thread Ramadoss Chinnakuzhandai
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);

Re: Tokens

2003-11-19 Thread Gurpreet Dhanoa
. - 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

RE: tokens and set-property

2003-01-30 Thread Jerome Jacobsen
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

RE: tokens and set-property

2003-01-30 Thread pqin
(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

RE: Tokens - a simple explanation wanted

2002-12-09 Thread Naeem Ally
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

Re: [Tokens][2] Where can I find more information....

2002-09-10 Thread Michael Delamere
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

Re: [Tokens][2] Where can I find more information....

2002-09-10 Thread Eddie Bush
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

Re: [Tokens] Where can I find more information....

2002-09-09 Thread Michael Delamere
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

RE: [Tokens][2] Where can I find more information....

2002-09-09 Thread Andrew Hill
() 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

RE: [Tokens][2] Where can I find more information....

2002-09-09 Thread Jon.Ridgway
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

RE: [Tokens][2] Where can I find more information....

2002-09-09 Thread Jon.Ridgway
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

RE: [Tokens][2] Where can I find more information....

2002-09-09 Thread Andrew Hill
]] 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

Re: [Tokens][2] Where can I find more information....

2002-09-09 Thread Michael Delamere
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

RE: [Tokens][2] Where can I find more information....

2002-09-09 Thread Andrew Hill
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

Re: [Tokens][2] Where can I find more information....

2002-09-09 Thread Michael Delamere
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

Re: [Tokens][2] Where can I find more information....

2002-09-09 Thread Michael Delamere
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

Constant session keys and multiple windows (WAS: RE: [Tokens][2] Where can I find more information....)

2002-09-09 Thread Andrew Hill
. 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

RE: [Tokens][2] Where can I find more information....

2002-09-09 Thread Andrew Hill
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

Re: [Tokens][2] Where can I find more information....

2002-09-09 Thread Michael Delamere
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

Re: [Tokens][2] Where can I find more information....

2002-09-09 Thread Eddie Bush
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

Re: [Tokens][2] Where can I find more information....

2002-09-09 Thread Michael Delamere
: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

RE: [Tokens][2] Where can I find more information....

2002-09-09 Thread Dhulipala, Kris
- 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

RE: [Tokens][2] Where can I find more information....

2002-09-09 Thread Jon.Ridgway
' 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

RE: [Tokens][2] Where can I find more information....

2002-09-09 Thread Dhulipala, Kris
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

Re: [Tokens][2] Where can I find more information....

2002-09-09 Thread ISHIKAWA Tadashi
: 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....

2002-09-09 Thread Andrew Hill
: 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

RE: RE: Tokens

2001-12-03 Thread Steve Bendiola
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

Re: Tokens

2001-11-30 Thread Matt Raible
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?

RE: Tokens?

2001-08-30 Thread Dudley [EMAIL PROTECTED]
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,

RE: Tokens?

2001-08-30 Thread Claudio Parnenzini
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