Hi, Pallav
you should put your bean in a package, for example
com.mypackage.MyBean
So, the class file for MyBean is to placed in
app/WEB-INF/classes/com/mypackage directory.
In order to instantiate MyBean in your JSP document
you have to modify appropriately 'class' attribute
 
<jsp:useBean id="mybean"
  scope="application"
  class="com.mypackage.MyBean" />
 
Regards,
Piotr K.

----- Original Message -----
From: pallav
Sent: Sunday, March 24, 2002 8:51 PM
Subject: ClassNotFoundException

hi..i'm trying to load a jsp page using a bean..the jsp file is located in D:\Program Files\Tomcat\webapps\jspTest
The bean is located in D:\Program Files\Tomcat\webapps\jspTest\Web-inf\classes and is a valid .class file...there are no package declarations...and this is the entry in server.xml
<Context path="/jspTest" docBase="jspTest" debug="0" reloadable="true"/>
do i need to put the bean name in web.xml?? currently i do not have a web.xml for this webapp because i am not using servlets...
any help appreciated..thanks..

Reply via email to