Book and Host Online Services
Please Login or Register

Knowledgebase

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

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?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read

Powered by WHMCompleteSolution

Language:

Quick Navigation

Client Login

Email

Password

Remember Me

Search



Follow Us on Twitter