Re: When using the ExecuteAndWait interceptor, is it possible to avoid calling prepare / validate methods on reloads?

2021-10-11 Thread Lukasz Lenart
pon., 11 paź 2021 o 16:26 Burton Rhodes napisał(a): > Thanks for the reply Lukasz. I thought about doing something like that, > but this page > https://struts.apache.org/core-developers/execute-and-wait-interceptor.html > mentions the ExecuteAndWait interceptor must be at the end

Re: When using the ExecuteAndWait interceptor, is it possible to avoid calling prepare / validate methods on reloads?

2021-10-11 Thread Burton Rhodes
Thanks for the reply Lukasz. I thought about doing something like that, but this page https://struts.apache.org/core-developers/execute-and-wait-interceptor.html mentions the ExecuteAndWait interceptor must be at the end of the stack. I guess you're saying that is not always the case. I&#x

Re: When using the ExecuteAndWait interceptor, is it possible to avoid calling prepare / validate methods on reloads?

2021-10-10 Thread Lukasz Lenart
czw., 7 paź 2021 o 16:16 Burton Rhodes napisał(a): > > Through a recent debugging session I realized that when refreshing a "wait" > page during an ExecuteAndWait process, it calls the action's prepare() and > validate() methods each time. For some reason I thought Struts > would immediately ident

When using the ExecuteAndWait interceptor, is it possible to avoid calling prepare / validate methods on reloads?

2021-10-07 Thread Burton Rhodes
Through a recent debugging session I realized that when refreshing a "wait" page during an ExecuteAndWait process, it calls the action's prepare() and validate() methods each time. For some reason I thought Struts would immediately identify the "waiting" Action, and if it wasn't finished, it would

Re: URI too long error when using ExecuteAndWait interceptor

2020-11-30 Thread Lukasz Lenart
sał(a): > > I ended up replacing the tag refresh method with javascript that > parses the "url" variable and recreates a element on the fly to > submit via POST. > > On Fri, Nov 20, 2020 at 4:19 PM Burton Rhodes > wrote: > > > I have a page that submit

Re: URI too long error when using ExecuteAndWait interceptor

2020-11-21 Thread Burton Rhodes
I ended up replacing the tag refresh method with javascript that parses the "url" variable and recreates a element on the fly to submit via POST. On Fri, Nov 20, 2020 at 4:19 PM Burton Rhodes wrote: > I have a page that submits a form via POST and uses the ExecuteAndWait >

URI too long error when using ExecuteAndWait interceptor

2020-11-20 Thread Burton Rhodes
I have a page that submits a form via POST and uses the ExecuteAndWait interceptor. On the "wait" jsp I have: "/> However, the includeParams "all" is including all the POST form variables (which there are many), and as a result, I am getting a "URI too long&

Re: [S2] ExecuteAndWait Interceptor // Only re-submit token parameters on refresh?

2018-04-21 Thread Yasser Zamani
On 4/21/2018 3:05 PM, Martin Gainty wrote: > i could'nt find it in servlet-api spec? > > https://tomcat.apache.org/tomcat-8.0-doc/servletapi/javax/servlet/http/HttpServletResponse.html > > HttpServletResponse (Servlet 3.1 API Documentation > ...

Re: [S2] ExecuteAndWait Interceptor // Only re-submit token parameters on refresh?

2018-04-21 Thread Martin Gainty
e.org Subject: Re: [S2] ExecuteAndWait Interceptor // Only re-submit token parameters on refresh? On 4/18/2018 1:21 AM, Martin Gainty wrote: > MG>AFAIK a redirect terminates the old session and creates a new session I think redirect to same domain:ip in same browser tab page should

Re: [S2] ExecuteAndWait Interceptor // Only re-submit token parameters on refresh?

2018-04-18 Thread Yasser Zamani
On 4/18/2018 5:27 PM, Martin Gainty wrote: > MG2>some confusion on where session is accessed > * available. This is because actions are built on a single-thread model. The > * only way to pass data is through the session > MG2>with chain interceptor No it didn't mean "with chain interceptor" t

Re: [S2] ExecuteAndWait Interceptor // Only re-submit token parameters on refresh?

2018-04-18 Thread Martin Gainty
MG2>some confusion on where session is accessed From: Yasser Zamani on behalf of Yasser Zamani Sent: Wednesday, April 18, 2018 2:57 AM To: user@struts.apache.org Subject: Re: [S2] ExecuteAndWait Interceptor // Only re-submit token parameters on refresh?

Re: [S2] ExecuteAndWait Interceptor // Only re-submit token parameters on refresh?

2018-04-17 Thread Yasser Zamani
On 4/18/2018 1:21 AM, Martin Gainty wrote: > MG>AFAIK a redirect terminates the old session and creates a new session I think redirect to same domain:ip in same browser tab page should keep session. > MG>a better alternative is to implement ChainingInterceptor with type="chain"> e.g. As Strut

Re: [S2] ExecuteAndWait Interceptor // Only re-submit token parameters on refresh?

2018-04-17 Thread Martin Gainty
From: Burton Rhodes Sent: Tuesday, April 17, 2018 7:23 AM To: Struts Users Mailing List Subject: Re: [S2] ExecuteAndWait Interceptor // Only re-submit token parameters on refresh? That's a great thought. I think the session method makes more sense. O

Re: [S2] ExecuteAndWait Interceptor // Only re-submit token parameters on refresh?

2018-04-17 Thread Yasser Zamani
On 4/17/2018 3:53 PM, Burton Rhodes wrote: > That's a great thought. I think the session method makes more sense. Glad to hear :) thanks! I would like to add that you also can delete ExecAndWait interceptor. Then just save posted data in db and immediately send a thank you message to your user.

Re: [S2] ExecuteAndWait Interceptor // Only re-submit token parameters on refresh?

2018-04-17 Thread Burton Rhodes
That's a great thought. I think the session method makes more sense. On Tue, Apr 17, 2018 at 2:12 AM, Yasser Zamani wrote: > > > On 4/17/2018 6:42 AM, Burton Rhodes wrote: > > Also, How would I include everything except the email body field with the > > s:url tag? > > Unfortunately, I couldn't

Re: [S2] ExecuteAndWait Interceptor // Only re-submit token parameters on refresh?

2018-04-17 Thread Yasser Zamani
On 4/17/2018 6:42 AM, Burton Rhodes wrote: > Also, How would I include everything except the email body field with the > s:url tag? Unfortunately, I couldn't find a simple way :( However, as a workaround, instead, in your email form jsp, could you put the email body field as a POST param and th

Re: [S2] ExecuteAndWait Interceptor // Only re-submit token parameters on refresh?

2018-04-16 Thread Burton Rhodes
Yes. I believe this is the case. Let me see if I can track down an example that breaks. Right now I just have reports of this happening but I haven’t been able to reproduce on my end yet. Also, How would I include everything except the email body field with the s:url tag? Thanks, Burton On Mond

Re: [S2] ExecuteAndWait Interceptor // Only re-submit token parameters on refresh?

2018-04-16 Thread Yasser Zamani
On 4/15/2018 11:39 PM, Burton Rhodes wrote: > I have been getting "Bad Request" or "URL too long" errors on occasion for > an email form that uses the execute and wait interceptor. I am using the > to resubmit the form per the documentation. > > "/> > > However, the original form submits via

[S2] ExecuteAndWait Interceptor // Only re-submit token parameters on refresh?

2018-04-15 Thread Burton Rhodes
I have been getting "Bad Request" or "URL too long" errors on occasion for an email form that uses the execute and wait interceptor. I am using the to resubmit the form per the documentation. "/> However, the original form submits via POST and the meta tag uses GET which I believe is the source

Error while using executeAndWait interceptor

2013-07-15 Thread Sreekanth S. Nair
WARN [org.apache.struts2.interceptor.ExecuteAndWaitInterceptor] (http-localhost/127.0.0.1:8080-1) ExecuteAndWait interceptor has detected that no result named 'wait' is available. Defaulting to a plain built-in wait page. It is highly recommend you provide an action-specific or global re

Re: [Help] executeAndWait Interceptor prob during migration

2008-11-24 Thread Nils-Helge Garli Hegvik
That I don't want to changed. > > > -Original Message- > From: Nils-Helge Garli Hegvik [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 25, 2008 10:50 AM > To: Struts Users Mailing List > Subject: Re: [Help] executeAndWait Interceptor prob during migration > >

RE: [Help] executeAndWait Interceptor prob during migration

2008-11-24 Thread nikunj
s2/inter ceptor/ExecuteAndWaitInterceptor.html -Original Message- From: ravindra [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2008 11:16 AM To: 'Struts Users Mailing List' Subject: RE: [Help] executeAndWait Interceptor prob during migration Hi nikunj, I think you can use Ht

RE: [Help] executeAndWait Interceptor prob during migration

2008-11-24 Thread ravindra
Hi nikunj, I think you can use HttpServletRequest (request scope) object in your utitlity class. HttpServletRequest object is threadlocal object.When executeAndWait Interceptor is in progress you can not use session or application context object but request scope will be always available to

RE: [Help] executeAndWait Interceptor prob during migration

2008-11-24 Thread nikunj
t: Tuesday, November 25, 2008 10:50 AM To: Struts Users Mailing List Subject: Re: [Help] executeAndWait Interceptor prob during migration It's hard to give advice without knowing what your utility class do... As you point out yourself, you can't really pass the request around outsi

Re: [Help] executeAndWait Interceptor prob during migration

2008-11-24 Thread Nils-Helge Garli Hegvik
AIL PROTECTED]> wrote: > Dear All, > > I am migrating my existing application, I have used HttpServletRequest > object in my Utility class. > > We can not use any threadlocal object, where we have used executeAndWait > interceptor. HttpServletRequest is threadlocal soo, I can not ab

[Help] executeAndWait Interceptor prob during migration

2008-11-24 Thread nikunj
Dear All, I am migrating my existing application, I have used HttpServletRequest object in my Utility class. We can not use any threadlocal object, where we have used executeAndWait interceptor. HttpServletRequest is threadlocal soo, I can not able to use any of methods, and those are having

AW: AW: ExecuteAndWait Interceptor

2008-10-02 Thread Jan Froehlich
Thank you very much Dale, I'll take a look at that. Jan -Ursprüngliche Nachricht- Von: Dale Newfield [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 2. Oktober 2008 19:02 An: Struts Users Mailing List Betreff: Re: AW: ExecuteAndWait Interceptor Jan Froehlich wrote: > Ca

Re: AW: ExecuteAndWait Interceptor

2008-10-02 Thread Dale Newfield
Jan Froehlich wrote: Can no one give me a hint with that?? All sources (google, books...) say that it is really easy to work with that interceptor... Error messages usually have useful content: java.lang.UnsupportedOperationException at java.util.Collections$UnmodifiableMap.put org.apach

AW: ExecuteAndWait Interceptor

2008-10-02 Thread Jan Froehlich
PROTECTED] Gesendet: Montag, 29. September 2008 15:58 An: Struts Users Mailing List Betreff: ExecuteAndWait Interceptor Hi I tried to add the ExecAndWait Interceptor to one of my actions. For that I added to my action configuration the interceptor-ref for it

ExecuteAndWait Interceptor

2008-09-29 Thread Jan Froehlich
Hi I tried to add the ExecAndWait Interceptor to one of my actions. For that I added to my action configuration the interceptor-ref for it. input,back,cancel c:\temp\xsl\ page.xml page.xml.error The action is call

Re: executeAndWait interceptor hibernate session closed

2008-01-10 Thread Laurie Harper
bmoraillon wrote: Hi, How can i open hibernate session with executeAndWait interceptor ? In fact OpenSessionInViewFiltered is not called before and i get a session closed error... Filters execute in the order the filter-mapping elements appear in your web.xml. Make sure the mapping for the

executeAndWait interceptor hibernate session closed

2008-01-10 Thread bmoraillon
Hi, How can i open hibernate session with executeAndWait interceptor ? In fact OpenSessionInViewFiltered is not called before and i get a session closed error... Thanks in advance, Benoît. -- View this message in context: http://www.nabble.com/executeAndWait-interceptor-hibernate-session

ExecuteAndWait interceptor position?

2007-10-14 Thread Igor Vlasov
ancel</param> </interceptor-ref> </interceptor-stack> Why it appears twice? Before all interceptors and after all interceptors. In other parts of documentation i see than i must use: - an execAndWait interceptor as last interceptor. Why we need configured executeAndWaitSt