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

Reply via email to