• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Reference current session...common accessor ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reference current session...common accessor ??


  • Subject: Reference current session...common accessor ??
  • From: Nathan Walker <email@hidden>
  • Date: Fri, 1 Jul 2005 11:03:45 -0400

I have these declarations all over:

Session sess = (Session)session();

In order to set things in the current session. I know I could create a superclass with that in it and just have all my components subclass that but seems unneccessary. Am I missing something here. I use this in the Direct Action class a lot to. Do I really have to declare that at the top of all my class files that I intend to reference my session object?  It seems so common to set stuff on the current session.  There must be someway else..

Thanks,
nathan
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Reference current session...common accessor ??
      • From: Kieran Kelleher <email@hidden>
    • Re: Reference current session...common accessor ??
      • From: "Jerry W. Walker" <email@hidden>
    • Re: Reference current session...common accessor ??
      • From: LD <email@hidden>
  • Prev by Date: Re: Wonder binary releases (Was: PostgreSQL plugin)
  • Next by Date: Re: Wonder binary releases (Was: PostgreSQL plugin)
  • Previous by thread: Re: WOHyperlink in WOComponentContent wrapped by WORepetition in subcomponent
  • Next by thread: Re: Reference current session...common accessor ??
  • Index(es):
    • Date
    • Thread