You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Partha Maitra <Pa...@lntinfotech.com> on 2008/01/02 07:24:57 UTC

saveToken() help!!!!!

Hi All,
Happy new year,
I am new to struts and have got a problem,
I want to handle the duplicate form submission using saveToken(), 
isTokenValid() method, but unable to findout any concrete example,
can you please provide me a concrete example so that I can have a better 
understanding on that..
Waiting for your responses!!!!

==============
Thanks & Regards,
Partha

______________________________________________________________________

Re: saveToken() help!!!!!

Posted by Paul Benedict <pb...@apache.org>.
The use of tokens is very simple.

Let's say you have two actions, A and B. Action A will call setToken and put
into the session a unique identifier. Action A then forwards off to a page
to display to the user. Struts Form tag knows to output the token as a
hidden field. When that is submitted to action B, action B should first
check if the token is valid. If so, accept the request. Otherwise reject it.

Paul

On Jan 3, 2008 1:17 AM, Al Sutton <al...@alsutton.com> wrote:

> Is the information at
> http://www.jaxmag.com/itr/online_artikel/psecom,id,648,nodeid,147.htmlabout
> half way down the page (titled "Handle duplicate form submission") any
> use?
>
> -----Original Message-----
> From: Partha Maitra [mailto:Partha.Maitra@lntinfotech.com]
> Sent: 03 January 2008 04:59
> To: Struts Users Mailing List
> Subject: RE: saveToken() help!!!!!
>
> Hi,
> I am sorry that I misunderstood him, really sorry for that..:-( it was
> very
> useful document, but I am working with struts 1.3 and the example was with
> struts2 it will be a great help if  you can provide me an example with 1.3
> with
> saveToken() method..
>
> ==============
> Thanks & Regards,
> Partha
>
>
>
>
>
> I think you misunderstood him.
>
> Have you looked at the showcase?, if so where did you have a problem
> understanding how it should work?
>
> -----Original Message-----
> From: Partha Maitra [mailto:Partha.Maitra@lntinfotech.com]
> Sent: 02 January 2008 12:19
> To: Struts Users Mailing List
> Subject: Re: saveToken() help!!!!!
>
> Thanks for the idea,
> but pls dont respond to discourage someone who's trying to learn if you
> dont
> know to respond then pls stop responding.
>
> ==============
> Thanks & Regards,
> Partha
>
> ______________________________________________________________________
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ______________________________________________________________________
>
>
>
> ______________________________________________________________________
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

RE: saveToken() help!!!!!

Posted by Al Sutton <al...@alsutton.com>.
Is the information at
http://www.jaxmag.com/itr/online_artikel/psecom,id,648,nodeid,147.html about
half way down the page (titled "Handle duplicate form submission") any use? 

-----Original Message-----
From: Partha Maitra [mailto:Partha.Maitra@lntinfotech.com] 
Sent: 03 January 2008 04:59
To: Struts Users Mailing List
Subject: RE: saveToken() help!!!!!

Hi,
I am sorry that I misunderstood him, really sorry for that..:-( it was very
useful document, but I am working with struts 1.3 and the example was with
struts2 it will be a great help if  you can provide me an example with 1.3
with
saveToken() method..

==============
Thanks & Regards,
Partha 





I think you misunderstood him.

Have you looked at the showcase?, if so where did you have a problem
understanding how it should work? 

-----Original Message-----
From: Partha Maitra [mailto:Partha.Maitra@lntinfotech.com]
Sent: 02 January 2008 12:19
To: Struts Users Mailing List
Subject: Re: saveToken() help!!!!!

Thanks for the idea,
but pls dont respond to discourage someone who's trying to learn if you dont
know to respond then pls stop responding.

==============
Thanks & Regards,
Partha 

______________________________________________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


______________________________________________________________________



______________________________________________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: saveToken() help!!!!!

Posted by Partha Maitra <Pa...@lntinfotech.com>.
Hi, 
I am sorry that I misunderstood him, really sorry for that..:-(
it was very useful document, but I am working with struts 1.3 and the 
example was with struts2
it will be a great help if  you can provide me an example with 1.3 with 
saveToken() method..

==============
Thanks & Regards,
Partha 





I think you misunderstood him.

Have you looked at the showcase?, if so where did you have a problem
understanding how it should work? 

-----Original Message-----
From: Partha Maitra [mailto:Partha.Maitra@lntinfotech.com] 
Sent: 02 January 2008 12:19
To: Struts Users Mailing List
Subject: Re: saveToken() help!!!!!

Thanks for the idea,
but pls dont respond to discourage someone who's trying to learn if you 
dont
know to respond then pls stop responding.

==============
Thanks & Regards,
Partha 

______________________________________________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


______________________________________________________________________



______________________________________________________________________

RE: saveToken() help!!!!!

Posted by Al Sutton <al...@alsutton.com>.
I think you misunderstood him.

Have you looked at the showcase?, if so where did you have a problem
understanding how it should work? 

-----Original Message-----
From: Partha Maitra [mailto:Partha.Maitra@lntinfotech.com] 
Sent: 02 January 2008 12:19
To: Struts Users Mailing List
Subject: Re: saveToken() help!!!!!

Thanks for the idea,
but pls dont respond to discourage someone who's trying to learn if you dont
know to respond then pls stop responding.

==============
Thanks & Regards,
Partha 

______________________________________________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: saveToken() help!!!!!

Posted by Partha Maitra <Pa...@lntinfotech.com>.
Thanks for the idea,
but pls dont respond to discourage someone who's trying to learn
if you dont know to respond then pls stop responding.

==============
Thanks & Regards,
Partha 

______________________________________________________________________

Re: saveToken() help!!!!!

Posted by Vencent Chen <ve...@gmail.com>.
Just take a look at the showcase!

On Jan 2, 2008 2:24 PM, Partha Maitra <Pa...@lntinfotech.com> wrote:

> Hi All,
> Happy new year,
> I am new to struts and have got a problem,
> I want to handle the duplicate form submission using saveToken(),
> isTokenValid() method, but unable to findout any concrete example,
> can you please provide me a concrete example so that I can have a better
> understanding on that..
> Waiting for your responses!!!!
>
> ==============
> Thanks & Regards,
> Partha
>
> ______________________________________________________________________




-- 
Vincent CHen