If you are using JRun 2.3, try putting your beans in
<JRun installation
directory>\servers\default\default-app\WEB-INF\classes
the remaining code looks ok. Which web server are you
using? Where are you putting your .jsp files?
Anand
--- Jean de Lavarene <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I am trying to use beans in my JSP pages but I
> can't figure out where to put my bean...
>
> Where can I configure the classpath of the jsp
> translator? Or if I can't where should my bean be
> placed?
>
>
> Thanks a lot,
>
> Jean (from Paris)
>
> Here is my JSP page :
>
> <html>
> <body>
> <%@ page language="java" %>
> <%! char c = 0; %>
> <jsp:useBean id="letterColor" class="AlphabetCode"
> scope="application"/>
> </body>
> </html>
>
> It is located in the directory
> /htdocs/AlphabetBean/
>
> and the bean AlphabetCode is in the
> /JRun/instantdb/Classes/ directory.
>
> The error message is:
>
> com.livesoftware.jsp.JSPServlet:
> javax.servlet.ServletException: Found 1 semantic
> error compiling
> "D:/Apache/htdocs/servlets/jsp/AlphabetBean/forLoo
> p21.java":
> 36. AlphabetCode letterColor =
> (AlphabetCode)
> JSPRuntime.instantiateBean("letterColor",
> "AlphabetCode", "application",
> __letterColor_was_created, pageContext, request,
> session, application);
> <---------->
> *** Error: Type jsp/AlphabetBean/AlphabetCode was
> not found
>
>
===========================================================================
> 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
__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com
===========================================================================
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