--- Kapil Sharma <[EMAIL PROTECTED]> wrote:
> public class ClsAction extends Action {
> public static GraphicsServer myServer = null;
> Actionforward execute(){
> if(myServer == null)
> myServer =
> ClsInitializeServer.getInitializeInstance();
>}
> }
Just make sure this
CTED]
Sent: Friday, June 01, 2007 11:33 AM
To: Struts Users Mailing List
Subject: RE: The class variable reference null problem
I tried your method , debug the program , it shows that the variable becomes
null,
But after login in again the "public static Graphics
--Original Message-
From: Fei Fei [mailto:[EMAIL PROTECTED]
Sent: Friday, June 01, 2007 11:06 AM
To: Struts Users Mailing List
Subject: RE: The class variable reference null problem
you can try to do something like this:
public class ClsAction extends Action { // Start Intialize the
another methods(){ . . . } public
void resetGServer()
{
synch..(lockObj)
{myServer = null;
}
}}- A Fei -> From: [EMAIL PROTECTED]> To: user@struts.apache.org> Subject: The
class variable reference null problem> Date: Fri, 1 Jun 2007 10:51:14 +0900>
Hi,
I have one problem
In my action class , I am initilazing my graphic software server as a static
variable e.g.
public class ClsAction extends Action {
// Start Intialize the instance of the graphics server
public static GraphicsServer myServer =
ClsInitializeServer
5 matches
Mail list logo