Yatish Sonkeshariya wrote:Hello Patrick,
1.In <jsp:useBean id="user", user is only name of beanInstance, you can use any other name.It doesnt relate to package-name.
2. UserData.class should be placed in classpath(WEB-INF/classes/user/UserData.class).
Thanks for replying. What is beanInstance?
Also, I put UserData.class in apache-tomcat-5.5.34\webapps\emailForm\WEB-INF\classes and I get an error.
Yatish Sonkeshariya wrote:beanInstance is the instance name of a particualr class, using which you can access its method just like you create instance progamatically,
ex- ClassName clsName = new ClassName();
It could be any name.
Can you post the error which you got?
description The server encountered an internal error () that prevented it from fulfilling this request.
org.apache.jasper.JasperException: /SaveName.jsp(1,1) The value for the useBean class attribute user.UserData is invalid.
Bear Bibeault wrote:Do you have a bean need UserData in a package named user? Id the the class file in the proper location? Please take more time with your posts to describe thew problem and what you have done more precisely.
I have a class named UserData in a package named user. The class file is in apache-tomcat-5.5.34/webapps/emailForm/WEB-INF/classes.