Re: Struts Token help

2007-12-21 Thread Alberto A. Flores
uring different request/sessions). This is a bomb awaiting to explode if you ask me (unless you know what you are doing e.g. synchronizing it, etc, etc) Indresh Chadha wrote: Hi, I need to stop: 1. multiple post to an action 2. refresh of a page using Struts. What i tried was using the S

Struts Token help

2007-12-20 Thread Indresh Chadha
Hi, I need to stop: 1. multiple post to an action 2. refresh of a page using Struts. What i tried was using the Struts Token. I have a common BaseAction class that extends Action class. All the other action classes extend the BaseAction class. In my BaseAction class I did the following

Re: struts token

2006-05-22 Thread Lixin Chu
i think the hidden field is automatically created if you use html:form tag.

Re: struts token

2006-05-19 Thread Michael Jouravlev
Search for renderToken() in FormTag.java: http://svn.apache.org/viewvc/struts/action/trunk/taglib/src/main/java/org/apache/struts/taglib/html/FormTag.java?view=markup Michael. On 5/19/06, temp temp <[EMAIL PROTECTED]> wrote: What hidden field should I use in jsp to pass the generated token to

Re: struts token

2006-05-19 Thread temp temp
What hidden field should I use in jsp to pass the generated token to next action class? Thanks & Regards Manfred Wolff <[EMAIL PROTECTED]> wrote: Hi mr. temp.temp 1. The Action calls saveToken(request); 2. A unique token will be generated and saved in the session and in the jsp as a hidden

Re: struts token

2006-05-19 Thread Manfred Wolff
Hi mr. temp.temp 1. The Action calls saveToken(request); 2. A unique token will be generated and saved in the session and in the jsp as a hidden field. 3. The next action calls |*isTokenValid

Re: struts token

2006-05-19 Thread temp temp
Can you tell me how can I use struts token mechanisim with out a form bean? Thanks & Regards Manfred Wolff <[EMAIL PROTECTED]> wrote: Yes, you can. The token will be stored in the request. temp temp wrote: > Can I use struts token mechanism for an action withou

Re: struts token

2006-05-18 Thread Manfred Wolff
Yes, you can. The token will be stored in the request. temp temp wrote: > Can I use struts token mechanism for an action without a form bean ? > Thanks & Regards > > > > - > Yahoo! Messenger with Voi

struts token

2006-05-18 Thread temp temp
Can I use struts token mechanism for an action without a form bean ? Thanks & Regards - Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.

Re: Struts token doesn't work problem

2005-01-21 Thread Will Stranathan
Just include a hidden element with the token name and value. Like: You'll have to look in the session to get the token value. I *think* the session key this is under is org.apache.struts.action.TOKEN (looking at the javadoc for that). w On Fri, 21 Jan 2005 09:21:44 +0800 Anthony Hong <[EMAI

Re: Struts token doesn't work problem

2005-01-20 Thread Anthony Hong
Actually I use xslt to do as my view. So I couldn't use struts tags at all. Is there any other mechanism that I could use to control double click? I have to simulate struts's token action? -- Anthony Hong - To unsubscribe, e-ma

Re: struts token to prevent duplicate submission

2005-01-20 Thread Hubert Rabago
:09 +0800, Kalra, Ashwani <[EMAIL PROTECTED]> wrote: > > Hi, > Can someone point me to the struts token usage any sample code/or > documentation link ? > > Regds > Ashwani > > This message contains information that may be privileged or confidential and > is the

Re: Struts token doesn't work problem

2005-01-20 Thread Jim Barrows
On Thu, 20 Jan 2005 09:54:00 -0500, Jeff Beal <[EMAIL PROTECTED]> wrote: > Look at the source for the tag and see how it inserts the > token. The token is just a session-scoped attribute and it's inserted > on the page as a hidden form field. You can probably write it to the > page easily withou

Re: Struts token doesn't work problem

2005-01-20 Thread Jeff Beal
Look at the source for the tag and see how it inserts the token. The token is just a session-scoped attribute and it's inserted on the page as a hidden form field. You can probably write it to the page easily without using the tag. -- Jeff Anthony Hong wrote: I think my problem is I didn't

Re: Struts token doesn't work problem

2005-01-20 Thread Anthony Hong
I think my problem is I didn't use html:form struts tag, I use form tag in html directly. So it didn't work. Thanks. -- Anthony Hong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

struts token to prevent duplicate submission

2005-01-20 Thread Kalra, Ashwani
Hi, Can someone point me to the struts token usage any sample code/or documentation link ? Regds Ashwani This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are

Re: Struts token doesn't work problem

2005-01-20 Thread Will Stranathan
user. 3b) Call resetToken(request) so the user can't re-use the same token On Thu, 20 Jan 2005 17:43:43 +0800 Anthony Hong <[EMAIL PROTECTED]> wrote: I use server side xslt transformation and return it to client side for rendering. I saw use struts token mechanism can control fo

Struts token doesn't work problem

2005-01-20 Thread Anthony Hong
I use server side xslt transformation and return it to client side for rendering. I saw use struts token mechanism can control form double submit problem. But it doesn't work in my enviorment. Is there any additional step I should put it into my response? Or it only work with the JSP