Hello Pallav:
I�ve read first two replies to your post.From my
experience they are right!... you just do as they say.
Besides I think that if your jsp is under webapps
directory.. then you need not modify the server.xml
config.
--- Piotr Korzybski <[EMAIL PROTECTED]> wrote:
> 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
>   To: [EMAIL PROTECTED]
>   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..
>


=====
BS Leopoldo Garcia Bolivar
 from Kansas State University.

__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to