I have two classes in two different packages.
MyClass is in mypackage and YourClass in yourpackage.
I imported MyClass in YourClass.
For example,
import mypackage.MyCla ss;
and MyClass has a static variable(Class variable) named myStatic.
and i used it some thing like
someVarible = myStatic;
this compiles good.
But i did the same thin in a jsp file. There it wont compiled.
Then i changed my code as,
someVariable = MyClass.myStati c;
Now it compiles successfully.
Why it happens like this ?
Am I wrong ?
Thanks,
P.Jerald
MyClass is in mypackage and YourClass in yourpackage.
I imported MyClass in YourClass.
For example,
import mypackage.MyCla ss;
and MyClass has a static variable(Class variable) named myStatic.
and i used it some thing like
someVarible = myStatic;
this compiles good.
But i did the same thin in a jsp file. There it wont compiled.
Then i changed my code as,
someVariable = MyClass.myStati c;
Now it compiles successfully.
Why it happens like this ?
Am I wrong ?
Thanks,
P.Jerald
Comment