Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Servlets and the fly likes Installing Bean classes with Tomcat3.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Installing Bean classes with Tomcat3.1" Watch "Installing Bean classes with Tomcat3.1" New topic

Installing Bean classes with Tomcat3.1

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi all
how do we can call a bean fro jsp?
where we should put the files?
i put jsp file in install_dir/webapp/examples/jsp
also i put bean java class in
i got an error that:
Unable to load class StringBean(bean class).
thanks alot for your time.

Joined: May 02, 2000
Posts: 11
I suspect you have a problem with the package name on your bean. You need to have the bean and its class in that package, and, if you use the <useBean> tag, make sure you include the class= argument. For instance:
should be
If you simply instantiate the bean in your jsp, remember to use <%@ page import="packagename.*" %>
Good luck
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Thanks alot
I will try it.
I agree. Here's the link:
subject: Installing Bean classes with Tomcat3.1