File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Installing Bean classes with Tomcat3.1" Watch "Installing Bean classes with Tomcat3.1" New topic
Author

Installing Bean classes with Tomcat3.1

Anonymous
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
install_dir/webapp/examples/web-inf/classes
i got an error that:
Unable to load class StringBean(bean class).
thanks alot for your time.
RAY CARNES
Greenhorn

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:
install_dir/webapp/examples/web-inf/classes
should be
install_dir/webapp/examples/web-inf/classes/packagename/StringBean.class
If you simply instantiate the bean in your jsp, remember to use <%@ page import="packagename.*" %>
Good luck
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Thanks alot
I will try it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Installing Bean classes with Tomcat3.1
 
Similar Threads
JSP and JavaBeans
where to put bean classes in JSP?
Place for class files : install_dir/webapps/ROOT/WEB-INF/classes or install_dir/shared/classes
Where in Tomcat3.1 should i put .jsp files, .java files(Beans files)
Servlet invoking problem