The idea is ever use a static method to deal with static variables.
sincerely,
Zenon Farias Braga F.
From: "Mick Sullivan" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Please Help On Static Reference
Date: Wed, 07 Mar 2001 15:5
Is parkingPriceHandler an instantiated object or a class?
-Original Message-
From: Mick Sullivan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 2:48 PM
To: [EMAIL PROTECTED]
Subject: Please Help On Static Reference
Hi all,
I was wondering could someoone please
;
}
public String getPrice() {
return thePrice;
}
}
Any ideas?
Original Message Follows
From: "Samson, Lyndon [IT]" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
Subject: RE: Please Help On Static Reference
Date
You have to either make the method a static one,
or instantiate an instance of your class to call
the method.
Jin
-Original Message-
From: Mick Sullivan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 10:20 AM
To: [EMAIL PROTECTED]
Subject: RE: Please Help On Static
errmm.. you can't access an instance method statically ..
You'll have to create a parkingPricehandler object (instance) first .. then use
that to reference the instance method
Anuj.
Mick Sullivan wrote:
It is a class, a very basic one at that
]
Reply-To: [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
Subject: RE: Please Help On Static Reference
Date: Wed, 7 Mar 2001 10:29:02 -0500
You have to either make the method a static one,
or instantiate an instance of your class to call
the method.
Jin
---
nt: Wednesday, March 07, 2001 10:54 AM
To: [EMAIL PROTECTED]
Subject: RE: Please Help On Static Reference
Hi Jin
Thanks for replying
How do I actually do that? Im kinda new to JSP so bear with me here.
I have done the following to the bean (made it static)
package parkingPrice;