Wherever your classpath can find it.
Just configure your servletcontainer (JRun, Tomcat etc.) to include the path
where your class file is installed.
Use the package-name in your <jsp:usebean> tag to make it available for the
JSP.
E.g. if your bean has the package-name: test.bean.TestBean, the syntax for
the <jsp:usebean> would be:
<jsp:useBean id="testing" class="test.bean.TestBean" scope="page">
regards Anfinn Line
----- Original Message -----
From: "Xiaofeng Wang" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 17, 2000 9:34 AM
Subject: a question on bean
> hi all,
>
> I want to use a bean in an jsp page.
>
> but where should I put the bean(I mean the class file).
>
> The same with the jsp page or somewhere else?
>
> and how to tell the jsp the path of the bean?
>
> Thanks.
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> 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
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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