I was trying to compile a
JSP and I was calling the method of a class that was in the default package(ie:none). like so:
Connection conn=ConnectMe.connectIt();
And the error I was getting was:
[error]
MyJSP_jsp.java:116: cannot find symbol
symbol : variable ConnectMe
location: class org.apache.jsp.MyJsp_jsp
Connection conn=ConnectMe.connectIt();
[/error] ^
I know that it wasnt a classpath problem because when I would type ConnectMe and press '.' the method name would show up in netbeans code assist popup.
But when I put the ConnectMe class in a package. Then my JSP compiles fine.
Although its not a problem as such, Anyone know why this behaviour?