Re: execAndWait Interceptor

2010-12-16 Thread Zoran Avtarovski
Sorry about the delayed response. I have been busy with xmas crap (ba humbug). The way we implement an ajax solution is to create a new thread, with a flag stored in the session and poll the server using a jquery ajax call every 10 seconds. The ajax call returns a json response which has the flag

Re: execAndWait Interceptor

2010-12-14 Thread RogerV
Sparecreative wrote: > > We use the interceptor for interrogating a legacy database where we have > no control over the execution or timing of the query. > > We basically have an API we call and then wait in hope. > > I have to say that I've found the interceptor to be inconsistent at best. >

Re: execAndWait Interceptor

2010-12-13 Thread Zoran Avtarovski
We use the interceptor for interrogating a legacy database where we have no control over the execution or timing of the query. We basically have an API we call and then wait in hope. I have to say that I've found the interceptor to be inconsistent at best. For example we have some queries that a

Re: execAndWait Interceptor

2010-12-09 Thread Dale Newfield
On Dec 9, 2010, at 11:11 AM, stanl...@gmail.com wrote: > Does anyone actually use this interceptor? Extensively. Any system that contains large amounts of data can have valid reasons for needing this, and not just for reporting. -Dale

Re: execAndWait Interceptor

2010-12-09 Thread Dave Newton
On Thu, Dec 9, 2010 at 11:27 AM, wrote: > I thought about that Dave, but isn't reporting an exception to the rule? > So what if it is? Long-running requests still exist (or may, depending on architecture). > Also, should a web framework try to play the role of a reporting solution? > As the fr

Re: execAndWait Interceptor

2010-12-09 Thread stanlick
I thought about that Dave, but isn't reporting an exception to the rule? Also, should a web framework try to play the role of a reporting solution? I'm trying to get a handle on roles and responsibilities more than anything else. Very few web developers like the Swiss Army Knife approach on accoun

Re: execAndWait Interceptor

2010-12-09 Thread Dave Newton
But some requests just take that long, reporting in particular. I'm not sure what that has to do with execAndWait in particular, though... I'd rather do something Ajaxy myself, but that's kind of a separate issue. Dave On Thu, Dec 9, 2010 at 11:11 AM, wrote: > Does anyone actually use this inte

Re: ExecAndWait interceptor parameters lost

2010-05-06 Thread Yiorgos Panayiotakis
Thanks Dale, that was a very informative mail. I used chain result type just for a better separation of actions and till now it did not seem to have any undesirable effect. Anyway I 'll try a new approach to the problem and I 'll avoid using chain result type. Thanks all for the help. On Wed, May

Re: ExecAndWait interceptor parameters lost

2010-05-05 Thread Dale Newfield
I believe that your problem isn't with execAndWait -- it's with the chain result type. The way that execAndWait works is that there's only one job runnable at a time in any given session with any given action name. The intermediate requests don't need the arguments as it's just using the acti

Re: ExecAndWait interceptor parameters lost

2010-05-05 Thread Robert Graf-Waczenski
Am 05.05.2010 12:42, schrieb Yiorgos Panayiotakis: Thank you, Though I have little experience in web development I was aware of that, but I avoided using sessions due to the fact that a user could open multiple tabs in a browser and issue multiple requests that would belong to the same session. S

Re: ExecAndWait interceptor parameters lost

2010-05-05 Thread Yiorgos Panayiotakis
Thank you, Though I have little experience in web development I was aware of that, but I avoided using sessions due to the fact that a user could open multiple tabs in a browser and issue multiple requests that would belong to the same session. So if he tried to refresh an older request this would

Re: ExecAndWait interceptor parameters lost

2010-05-05 Thread Alex Rodriguez Lopez
Hi, you can store data in session and retrieve it later on. Data stored in session is persisted through requests. ActionContext.getContext().getSession(); http://struts.apache.org/2.1.8.1/struts2-core/apidocs/com/opensymphony/xwork2/ActionContext.html Hi, I have an issue in my code that I

Re: execAndWait interceptor and setting request attribute throws NPException

2008-04-24 Thread Laurie Harper
akash agrawal wrote: Hi, When I use execAndWait interceptor and set some request attribute in my action, I get NPE: java.lang.NullPointerException at org.apache.catalina.connector.Request.setAttribute(Request.java:1376) at org.apache.catalina.connector.RequestFacade.setAttribu

Re: execAndWait interceptor and Tiles problem ..

2007-10-03 Thread Giovanni Azua
hi Antonio, It works like a dream! :))) Non ho visto quella, ma adesso funziona a posto :) Grazie mille ancora ed buena serata, saluti, Giovanni Antonio Petrelli wrote: 2007/10/3, Giovanni Azua <[EMAIL PROTECTED]>: You have no meta refresh, just add: "/>

Re: execAndWait interceptor and Tiles problem ..

2007-10-03 Thread Antonio Petrelli
2007/10/3, Giovanni Azua <[EMAIL PROTECTED]>: > > > > content="text/html; charset=iso-8859-1" /> > > > @import "css/screen.css"; > @import "css/main.css"; > @import "css/menu.css"; > > >

Re: execAndWait interceptor and Tiles problem ..

2007-10-03 Thread Giovanni Azua
hola antonio, Please find all the information below. Muchas gracias por adelantado! regards, Giovanni The tiles definition is: * * The requestWait.jsp page is

Re: execAndWait interceptor and Tiles problem ..

2007-10-03 Thread Antonio Petrelli
2007/10/3, Giovanni Azua <[EMAIL PROTECTED]>: > > a) Using tiles the delaySleepInterval is ignored and the wait page never > refreshes i.e. when SimulationRunAction completes it is never redirected > to success result. Can you post the Tiles definition and the JSP page in which you put the meta r

Re: execAndWait INTERCEPTOR

2007-05-20 Thread Mansour
I really need help in this. Do I need to use spring with this ?? I am missing something ? Mansour wrote: It's really funny: If I get the waiting screen it stays there and no further thing is rendered. If I click refresh, the results I am expecting are displayed. If I click refresh again the

Re: execAndWait INTERCEPTOR

2007-05-19 Thread Mansour
It's really funny: If I get the waiting screen it stays there and no further thing is rendered. If I click refresh, the results I am expecting are displayed. If I click refresh again the waiting, another refresh gives the results. Between each refresh there's around 30 seconds, and the operatio