I am trying to build a dynamic web app using Eclipse Helios. I am trying to use a java class inside a jsp page. The page is visible during coding and deployment. In the runtime the java classes are not resolved to a type. Why does this happen?
Update:
Directory structure as in eclipse
Restarunt JAX-WS Web Services
Deploymment Descriptor Java
Resources:src
default package
LoginBean build WebContent WebINF
lib
web.xml
weblogic.xml jsp files
Classes in the default package are invisible/unimportable by classes in a package. JSP files end up as a class in a package, so it will be invisible to JSP as well. This works in very specific (Tomcat) environments only, you don’t want to be dependent on that. Just put classes in a package. Always.
Unrelated to the problem, writing Java code in a JSP is a poor practice. Use a Servlet.