When you want you use a bean you need to specify only the package name in the class attribute, in your case example.WEB_INF.classes wasn't your package name you should try with UserInfoBean if that bean have no package... (<jsp:useBean id="userInfo" class="UserInfoBean">)
In the case your bean was in a package like com.company.Bean you then specify that package structure like this <jsp:useBean id="userInfo" class="com.company.Bean"> Sincerely Erlis Vidal Santos > -----Original Message----- > From: PUTHAMODOM, RAJESH [mailto:[EMAIL PROTECTED] > Sent: Friday, October 17, 2003 9:26 AM > To: '[EMAIL PROTECTED]' > Subject: Doubt > > Hi > > > I have developed a JSP Page, HTML and a Bean. I have put the JSP Page in > the > C:\jakarta-tomcat-4.1.27\jakarta-tomcat-4.1.27\webapps\examples Directory > and the HTML in the same dir. I have put the Bean class in > C:\jakarta-tomcat-4.1.27\jakarta-tomcat-4.1.27\webapps\examples\WEB- > INF\clas > ses directory. > > > I MY bean , the Path is like this package examples.WEB_INF.classes; > > and In mY JSP > <jsp:useBean id="userInfo" class="examples.WEB_INF.classes.UserInfoBean"> > <jsp:setProperty name="userInfo" property="*"/> > </jsp:useBean> > > But it does not find the Class. Please let me know how do i do? > > Thanks > > Rajesh > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
