Re: ExecuteAndWaitInterceptor Issue - ThreadLocal object

2008-11-26 Thread Nils-Helge Garli Hegvik
ValidUser(Map request) > { >String role = request. get(__); > } > > Wht Is should write in above blank > > Regards, > Nikunj > > -Original Message- > From: ravindra [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 26, 2008 7:01 PM > To: &#

Re: ExecuteAndWaitInterceptor Issue - ThreadLocal object

2008-11-26 Thread Nils-Helge Garli Hegvik
rly. Not like extractDataFromRequest function > } > > > Regards, > Nikunj > > > -Original Message- > From: Nils-Helge Garli Hegvik [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 26, 2008 2:26 PM > To: Struts Users Mailing List > Subject: Re: ExecuteAndWai

RE: ExecuteAndWaitInterceptor Issue - ThreadLocal object

2008-11-26 Thread nikunj
ubject: RE: ExecuteAndWaitInterceptor Issue - ThreadLocal object Hey nikunj, Why don't you implement SessionAware in your action and try? This means if you need to access, for example, session data, you need to implement SessionAware rather than calling ActionContext.getSession(). Regards, ravindra -O

RE: ExecuteAndWaitInterceptor Issue - ThreadLocal object

2008-11-26 Thread nikunj
Thanks!! -Original Message- From: Lukasz Lenart [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2008 7:00 PM To: Struts Users Mailing List Subject: Re: ExecuteAndWaitInterceptor Issue - ThreadLocal object 2008/11/26 nikunj <[EMAIL PROTECTED]>: > Try to understand my pro

RE: ExecuteAndWaitInterceptor Issue - ThreadLocal object

2008-11-26 Thread ravindra
EMAIL PROTECTED] Sent: Wednesday, November 26, 2008 6:54 PM To: 'Struts Users Mailing List' Subject: RE: ExecuteAndWaitInterceptor Issue - ThreadLocal object Nils, Try to understand my problem. I don't wana change my method signature. I have no problem to make another overloaded method.

Re: ExecuteAndWaitInterceptor Issue - ThreadLocal object

2008-11-26 Thread Lukasz Lenart
2008/11/26 nikunj <[EMAIL PROTECTED]>: > Try to understand my problem. > I don't wana change my method signature. > I have no problem to make another overloaded method. > But I don't want to change my original method. > You replied me with changing my original method. Then you will be not able to

RE: ExecuteAndWaitInterceptor Issue - ThreadLocal object

2008-11-26 Thread nikunj
ils-Helge Garli Hegvik [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2008 2:26 PM To: Struts Users Mailing List Subject: Re: ExecuteAndWaitInterceptor Issue - ThreadLocal object The other way around, something like this: Boolean isValidUser(HttpServletRequest request) { Map data = extract

Re: ExecuteAndWaitInterceptor Issue - ThreadLocal object

2008-11-26 Thread Nils-Helge Garli Hegvik
gt; > Now tell me what I should write in above blank line to call my actual > function. > > > Regards, > Nikunj > > -Original Message- > From: Nils-Helge Garli Hegvik [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 26, 2008 1:32 PM > To: Struts Users Mailin

RE: ExecuteAndWaitInterceptor Issue - ThreadLocal object

2008-11-26 Thread nikunj
ctual function. Regards, Nikunj -Original Message- From: Nils-Helge Garli Hegvik [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2008 1:32 PM To: Struts Users Mailing List Subject: Re: ExecuteAndWaitInterceptor Issue - ThreadLocal object I'm having a hard time underst

Re: ExecuteAndWaitInterceptor Issue - ThreadLocal object

2008-11-26 Thread Nils-Helge Garli Hegvik
rds, > Nikunj > > > -Original Message- > From: Nils-Helge Garli Hegvik [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 26, 2008 12:16 PM > To: Struts Users Mailing List > Subject: Re: ExecuteAndWaitInterceptor Issue - ThreadLocal object > > As you say, the

RE: ExecuteAndWaitInterceptor Issue - ThreadLocal object

2008-11-25 Thread nikunj
-Helge Garli Hegvik [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2008 12:16 PM To: Struts Users Mailing List Subject: Re: ExecuteAndWaitInterceptor Issue - ThreadLocal object As you say, the request object can be recycled by the container after the thread has executed [1]. You can't

Re: ExecuteAndWaitInterceptor Issue - ThreadLocal object

2008-11-25 Thread Nils-Helge Garli Hegvik
As you say, the request object can be recycled by the container after the thread has executed [1]. You can't "fix" this as it's up to the container to handle this. You have to refactor your code so it's not passing the request object around to different threads. Typically you would extract the info

ExecuteAndWaitInterceptor Issue - ThreadLocal object

2008-11-25 Thread nikunj
Dear All, Servlet container is written to be single-threaded. That means that the "request" object isn't designed to be used after the thread that handled the request has finished executing. What is happening is this: 1) Thread1 handles request 2) Thread1 gives request to Tomcat