Put the bean in a package.
jsp:useBean id="counter" scope="session" class="yourpackage.Counter" /

on JWS2 put the bean in .../classes/yourpackage/Counter.class

/NJ

>From: Gavin Selvaratnam <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Java Webserver
>Date: Thu, 12 Apr 2001 12:40:35 +0600
>
>Hi,
>      I'm using Javawebserver2.0 , and trying just to run a simple JSP with
>references a bean, given bellow is the code snipet,
>
><jsp:useBean id="counter" scope="session" class="Counter" />
>
>I have included the bean in the default classes directory of the
>javawebserver, but I'm getting the error given bellow,
>
>Error during compilation :
>C:
>\Java\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_BeanCounter.java:73:
>Class pagecompile.jsp.Counter not found in type declaration.
>                 Counter counter = null;
>                 ^
>C:
>\Java\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_BeanCounter.java:76:
>Class pagecompile.jsp.Counter not found in type declaration.
>                     counter= (Counter)
>                               ^
>C:
>\Java\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_BeanCounter.java:81:
>Class pagecompile.jsp.Counter not found in type declaration.
>                             counter = (Counter)
>Beans.instantiate(getClassLoader(), "Counter");
>                                        ^
>3 errors
>
>
>
>Please Help................
>
>Rgds,
>Gavin
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to