Thanks Nils-H

Lets take one method in utility class
        Public Boolean checkSessionValidation(HttpServletRequest)

We can't use ServletRequestAware because it is a ThreadLocal. This means if
we need to access, for example, request data, we need to implement
RequestAware rather than use ServletRequestAware.

RequestAware return Map object instead of HttpServletRequst. If I want to
use checkSessionValidation method then I need to change signature of the
method. 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

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
outside the thread of the request, so you probably have to change your
utility class.

Nils-H

On Tue, Nov 25, 2008 at 6:08 AM, nikunj <[EMAIL 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 able to use
> any of methods, and those are having HttpServletRequest.
>
> I don't want to change my Utility class.
>
>
>
> Can anybody help me?
>
>
>
>
>
> Regards,
>
>
>
> Nikunj Mulani
>
> Applied Software Pvt. Ltd.
>
> Ahmedabad
>
> 91-98249 88262
>
>

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


__________ NOD32 3637 (20081124) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com



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

Reply via email to