• 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
session undefined
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

session undefined


  • Subject: session undefined
  • From: Drew Thoeni <email@hidden>
  • Date: Fri, 12 Feb 2010 21:45:34 -0500

I'm sure this is one of the times where I wasn't paying attention when I was learning about WO, but I'm a bit stumped by the calling of session from classes that are not associated with components.

I'm trying to record a value input from the screen to a session variable and then use it in a class that is not part of a web component (it's a class that is called to do some database maintenance).

Here's the basic setup.

Main allows input from the user and records a user option to session variable "target"

ContactUpdate is trying to retrieve the value within the session.target() but the standard code (below) gives an exception "The method session is undefined for type ContactUpdate."

private Session session = (Session)session();

I have imported the com.sqe.app.Session into ContactUpdate and tried everything else I can think of but I'm at a total loss as to why I can address session in "Main" but not in ContactUpdate.

All help to the novice here is appreciated.

Best,

Drew
 _______________________________________________
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: session undefined
      • From: Mark Wardle <email@hidden>
  • Prev by Date: Re: [MEET] WO-NoVA NEXT TUESDAY 2/16
  • Next by Date: Re: session undefined
  • Previous by thread: Re: IllegalStateException "Trying to check out a session twice in one RR loop"
  • Next by thread: Re: session undefined
  • Index(es):
    • Date
    • Thread