Knowledgebase
Portal Home > Knowledgebase > Linux Hosting > Why aren't my java classes working in my JSP Pages ?
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.
|
Add to Favourites
Print this Article
|
Also Read
Powered by WHMCompleteSolution