wrap httpservletrequest and session in threadlocal variable

Discussion in 'Java' started by dharshanav, Jan 10, 2007.

  1. dharshanav

    dharshanav Guest

    Hi,

    I'm in the process of refactoring a web application (business logic in
    the action classes), which has lots of references to httpservletrequest
    and httpsession.

    I'm planning to wrap the request and session variables through two
    static classes, containing threadlocal variables, and ititialising it
    in through a filter to prevent the code from breaking during the
    refactor process.
    Is it a good idea to do this?

    Thanks,
    dharshanav, Jan 10, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve Jasper
    Replies:
    5
    Views:
    1,301
    Steve Jasper
    Nov 20, 2003
  2. Timo Nentwig
    Replies:
    1
    Views:
    758
  3. Aaron Fude

    To wrap or not to wrap?

    Aaron Fude, May 8, 2008, in forum: Java
    Replies:
    12
    Views:
    683
    Chronic Philharmonic
    May 10, 2008
  4. Art Werschulz

    Text::Wrap::wrap difference

    Art Werschulz, Sep 22, 2003, in forum: Perl Misc
    Replies:
    0
    Views:
    218
    Art Werschulz
    Sep 22, 2003
  5. Art Werschulz

    Text::Wrap::wrap difference

    Art Werschulz, Sep 24, 2003, in forum: Perl Misc
    Replies:
    1
    Views:
    232
    Anno Siegel
    Sep 25, 2003
Loading...

Share This Page