HI,
        Did any one worked with <s:head theme= and  token-session interceptor?

I mean, in the head.ftl where ever we have <@s.url it stops excution of s:head 
there,
This happens only when I try to retrieve back previously executed result

There are 2 things I noticed,
        1. If you add <s:url in the the jsp it picks up fine, only the <@s.url 
is the culprit
<@s.property is working fine
        2. URLTag never gets called when I load a url <@s.url in ftlbut it gets 
called <s:url from jsp why is this so? Then how is it getting executed?

Regards,

Jishnu Viswanath

Software Engineer

*(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll

Tavant Technologies Inc.,

www.tavant.com

PEOPLE :: PASSION :: EXCELLENCE


-----Original Message-----
From: Jishnu Viswanath [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 30, 2008 3:36 AM
To: Struts Users Mailing List
Subject: RE: [S2]Multiple Form Submission

Hey Henan,
        In some case I am getting 
Map session = ActionContext.getContext().getSession();
And the session contains a key called 
org.apache.struts2.util.InvocationSessionStore.invocationMap
and the value is Another SessionMap,
whose key value is correct struts.token
and value is the SESSION.

Regards,

Jishnu Viswanath

Software Engineer

*(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll

Tavant Technologies Inc.,

www.tavant.com

PEOPLE :: PASSION :: EXCELLENCE


-----Original Message-----
From: Jishnu Viswanath [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 30, 2008 1:15 AM
To: Struts Users Mailing List
Subject: RE: [S2]Multiple Form Submission

Hi,
        :) Thanks Henan, At least something came up,
        It was my mistake I was doing it in all interceptor, now I have to 
extend that interceptor to ignore the values if the session does not exist. It 
ok :)

And they call getters every time also, that also I have to worry, any way 
thanks very much. I really appreciate it :)

Regards,

Jishnu Viswanath

Software Engineer

*(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll

Tavant Technologies Inc.,

www.tavant.com

PEOPLE :: PASSION :: EXCELLENCE


-----Original Message-----
From: hernan gonzalez [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 30, 2008 12:24 AM
To: Struts Users Mailing List
Subject: Re: [S2]Multiple Form Submission

The <s:token /> should be in the jsp that creates the form that is
submitted to the action (not in the result jsp!), so that the action
can
check for its existence. And the stack with the token interceptor
should be applied only to that action/method.

Hernán J. González
http://hjg.com.ar/


On Wed, Oct 29, 2008 at 4:38 PM, Jishnu Viswanath
<[EMAIL PROTECTED]> wrote:
> Hi Wes,
>        I was not using <s:token />
> But after your mail I just added that, and tried
> I have an empty jsp
>
> <%@ taglib prefix="s" uri="/struts-tags" %>
> <%@ taglib prefix="t" uri="/test" %>
> <html>
> <head>
>    <title>Index</title>
>    <s:head theme="ajax"/>
>
> </head>
> <body>
>    <s:token/>
> </body>
> </html>
>
> This jsp is mapped in index.action
>
> In struts.xml I have the action mapped which refers to the following 
> interceptor stack
>                        <interceptor-stack name="paramsPrepare">
>                                        <interceptor-ref name="token-session"/>
>                                <interceptor-ref name="exception" />
>                                <interceptor-ref name="alias" />
>                                <interceptor-ref name="checkbox" />
>                                <interceptor-ref name="params" />
>                                <interceptor-ref name="servlet-config" />
>                                <interceptor-ref name="prepare" />
>                                <interceptor-ref name="conversionError" />
>                        </interceptor-stack>
>
> And action map is like this
>                <action name="index" 
> class="com.neolivz.sandbox.action.IndexAction">
>                        <interceptor-ref name="paramsPrepare"/>
>                        <result>/jsp/index.jsp</result>
>                </action>
>
> And ;) it does work without the token-session interceptor :D
>
> Regards,
>
> Jishnu Viswanath
>
> Software Engineer
>
> *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll
>
> Tavant Technologies Inc.,
>
> www.tavant.com
>
> PEOPLE :: PASSION :: EXCELLENCE
>
>
> -----Original Message-----
> From: Wes Wannemacher [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 29, 2008 11:47 PM
> To: Struts Users Mailing List
> Subject: Re: [S2]Multiple Form Submission
>
> Can you copy/paste some of your action/jsp/configuration code.
>
> Are you using the <s:token /> tag in your form?
>
> -Wes
>
> On Wed, Oct 29, 2008 at 2:09 PM, Jishnu Viswanath
> <[EMAIL PROTECTED]> wrote:
>> Hi,
>>        I read that part,
>>        First thing I used token session interceptor, it says "it will block 
>> subsequent requests until the first request is complete, and then instead of 
>> returning the invalid.token code"
>>        Second there was no double post,  none of my pages are loading when I 
>> added this interceptor.
>>
>> Regards,
>>
>> Jishnu Viswanath
>>
>> Software Engineer
>>
>> *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll
>>
>> Tavant Technologies Inc.,
>>
>> www.tavant.com
>>
>> PEOPLE :: PASSION :: EXCELLENCE
>>
>>
>> -----Original Message-----
>> From: hernan gonzalez [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, October 29, 2008 11:26 PM
>> To: Struts Users Mailing List
>> Subject: Re: [S2]Multiple Form Submission
>>
>> Take a look at the documentation. The  message is quite clear:
>>
>> "No result defined for action com.neolivz.sandbox.action.IndexAction
>> and result invalid.token"
>>
>> The Tokeninterceptor  throw a special result  "invalid.token" when the
>> token is invalid (what usually
>> means a double submit). Hence, you should configure specify a jsp for
>> that result in your action mapping
>> (for that action, and/or globally).
>>
>> Take a look also to the token-session-interceptor.html which has a
>> (perhaps) more interesting behaviuor.
>> You might also buy the "struts2 in action" book.
>>
>> Regards
>>
>> Hernán J. González
>> http://hjg.com.ar/
>>
>>
>>
>> On Wed, Oct 29, 2008 at 2:54 PM, Jishnu Viswanath
>> <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi,
>>>        Thanks for the reply but I tried it out but got this error.
>>> In my stack I added
>>>                <interceptor-ref name="token-session"/>
>>> I have a list of interceptors stacks, I added to them
>>>
>>>
>>> HTTP ERROR: 404
>>>
>>> No result defined for action com.neolivz.sandbox.action.IndexAction and 
>>> result invalid.token
>>>
>>> RequestURI=/WebSandbox/index.action
>>> Caused by:
>>>
>>> No result defined for action com.neolivz.sandbox.action.IndexAction and 
>>> result invalid.token - action - 
>>> file:/D:/Work/TWMS/WebSandbox/target/classes/struts.xml:12:71
>>>        at 
>>> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:345)
>>>        at 
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
>>>        at 
>>> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:50)
>>>        at 
>>> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:507)
>>>        at 
>>> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:421)
>>>        at 
>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065)
>>>        at 
>>> org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
>>>        at 
>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065)
>>>        at 
>>> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
>>>        at 
>>> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
>>>        at 
>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065)
>>>        at 
>>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
>>>        at 
>>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185)
>>>        at 
>>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>>>        at 
>>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
>>>        at 
>>> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
>>>        at 
>>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146)
>>>        at 
>>> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>>>        at 
>>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>>>        at org.mortbay.jetty.Server.handle(Server.java:285)
>>>        at 
>>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
>>>        at 
>>> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
>>>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>>>        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
>>>        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
>>>        at 
>>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329)
>>>        at 
>>> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
>>>
>>> Powered by Jetty://
>>>
>>> Regards,
>>>
>>> Jishnu Viswanath
>>>
>>> Software Engineer
>>>
>>> *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll
>>>
>>> Tavant Technologies Inc.,
>>>
>>> www.tavant.com
>>>
>>> PEOPLE :: PASSION :: EXCELLENCE
>>>
>>>
>>> -----Original Message-----
>>> From: hernan gonzalez [mailto:[EMAIL PROTECTED]
>>> Sent: Wednesday, October 29, 2008 7:04 PM
>>> To: Struts Users Mailing List
>>> Subject: Re: [S2]Multiple Form Submission
>>>
>>> http://struts.apache.org/2.0.11.2/docs/token-interceptor.html
>>> http://struts.apache.org/2.0.11.2/docs/token-session-interceptor.html
>>> http://www.planetstruts.org/struts2-showcase/token/index.jsp
>>>
>>>
>>> Hernán J. González
>>> http://hjg.com.ar/
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>> Any comments or statements made in this email are not necessarily those of 
>>> Tavant Technologies.
>>> The information transmitted is intended only for the person or entity to 
>>> which it is addressed and may
>>> contain confidential and/or privileged material. If you have received this 
>>> in error, please contact the
>>> sender and delete the material from any computer. All e-mails sent from or 
>>> to Tavant Technologies
>>> may be subject to our monitoring procedures.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>>
>> --
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> Any comments or statements made in this email are not necessarily those of 
>> Tavant Technologies.
>> The information transmitted is intended only for the person or entity to 
>> which it is addressed and may
>> contain confidential and/or privileged material. If you have received this 
>> in error, please contact the
>> sender and delete the material from any computer. All e-mails sent from or 
>> to Tavant Technologies
>> may be subject to our monitoring procedures.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
> --
> Wesley Wannemacher
> President, Head Engineer/Consultant
> WanTii, Inc.
> http://www.wantii.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> Any comments or statements made in this email are not necessarily those of 
> Tavant Technologies.
> The information transmitted is intended only for the person or entity to 
> which it is addressed and may
> contain confidential and/or privileged material. If you have received this in 
> error, please contact the
> sender and delete the material from any computer. All e-mails sent from or to 
> Tavant Technologies
> may be subject to our monitoring procedures.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



--

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any comments or statements made in this email are not necessarily those of 
Tavant Technologies.
The information transmitted is intended only for the person or entity to which 
it is addressed and may 
contain confidential and/or privileged material. If you have received this in 
error, please contact the 
sender and delete the material from any computer. All e-mails sent from or to 
Tavant Technologies 
may be subject to our monitoring procedures.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any comments or statements made in this email are not necessarily those of 
Tavant Technologies.
The information transmitted is intended only for the person or entity to which 
it is addressed and may 
contain confidential and/or privileged material. If you have received this in 
error, please contact the 
sender and delete the material from any computer. All e-mails sent from or to 
Tavant Technologies 
may be subject to our monitoring procedures.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any comments or statements made in this email are not necessarily those of 
Tavant Technologies.
The information transmitted is intended only for the person or entity to which 
it is addressed and may 
contain confidential and/or privileged material. If you have received this in 
error, please contact the 
sender and delete the material from any computer. All e-mails sent from or to 
Tavant Technologies 
may be subject to our monitoring procedures.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to