Why aren't my java classes working in my JSP Pages ? Print

  • 4

Is the bean you are accessing part of a package ?

For instance:

com.mycompany.Bean

or are does the class have no package ? Just:

Bean

If the class is not part of a package, you will have problems. Specifically the JSP page will not compile, it will throw exceptions.

The Tomcat server doesn't properly handle classes without packages when referenced in JSP pages. Make sure all your bean classes are part of a package, and you should be all set.

 


Was this answer helpful?

« Back