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.

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

What do I need to do to put Flash on my website?

Flash is a client side feature - it runs on the user's computer, not on your web host. As long as...

How do I track how many hits my website gets?

Tracking on your site can be either done server-side or remotely. With server-side statistics,...

What are PHP, ASP, perl, etc?

These are all programming languages which are referred to by their acronyms.PHP - PHP: Hypertext...

How do I login to my domain's cPanel?

you can login to your cPanel by going to www.yourdomain.com/cpanel (yourdomain is...

Do I have to change my domain if I get a new host?

No. Provided that the domain is registered in your name (as it should be), you can simply update...

Powered by WHMCompleteSolution