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.
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