Home arrow static arrow Java Programming [Archive] - JSP prob
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - JSP prob
This topic has 2 replies on 1 page.

Posts:266
Registered: 9/29/02
JSP prob  
Aug 4, 2004 7:03 PM



 
I have a two classes called Class1 and Class2 in a package called myPackage1.

They both have package myPackage1; declared at the top of the page.

I compile Class1 just fine.

Class2 creates and instance of Class1 and it will not compile unless I take the package declaration off of it. - But if I do that I cannot use it as a bean.

What would cause something like this to happen and how can I fix this???

Please help,
-Wiley
 

Posts:2,206
Registered: 8/15/02
Re: JSP prob  
Aug 4, 2004 7:06 PM (reply 1 of 2)



 
compile both classes at the same time
 

Posts:266
Registered: 9/29/02
Re: JSP prob  
Aug 4, 2004 8:00 PM (reply 2 of 2)



 
That worked, thanks. But why did I have to do that ? I don't get it. Do you? please explain pleeeeeeeeeez thanks!

-Wiley
 
This topic has 2 replies on 1 page.