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:
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
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
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
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.
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
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
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
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
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
-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
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
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
13 matches
Mail list logo