• 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
Re: Accessing Session
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing Session


  • Subject: Re: Accessing Session
  • From: Guido Neitzer <email@hidden>
  • Date: Thu, 3 Apr 2008 00:07:54 -0600

On 02.04.2008, at 21:25, Eleni Manou wrote:

I am just copying some lines from my project in WO 5.3. There in Session.java I define

public String userName;

and then in a component I set this variable using

((Session)session()).userName = .....

This is not working in WOLips project, wher I get the error message

Unresolved compilation problem:
	username cannot be resolved or is not a field

Add public accessor methods to your session class for the username and call


((Session)session()).setUserName("aUserName");

I can not understand what you mean by "Do you have some things in packages and others not? Are you importing the correct Session class?". Sorry, I am a newcomer in Eclipse/WOLips. Can you help me a little bit more?

Background is, that sometimes people *think* they are asking the right Session class, but they import a Session class from a completely different package (JavaMail for example).


cug

--
http://www.event-s.net

_______________________________________________
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


References: 
 >Accessing Session (From: Eleni Manou <email@hidden>)
 >Re: Accessing Session (From: Guido Neitzer <email@hidden>)

  • Prev by Date: Re: WO 5.4 Linux Deployment
  • Next by Date: EOQualifier bad pattern for qualifier
  • Previous by thread: Re: Accessing Session
  • Next by thread: Re: WO 5.4 Linux Deployment
  • Index(es):
    • Date
    • Thread