Title: Newbie (trying) to use a bean

Hi all,

I'm trying to use a bean in my jsp file. It seems as if that the engine can't find my bean's class file. Here's my jsp code:

------------------------------------------


<%@ page language ="java"
%>

<jsp:useBean id="MediaLibData" class="MediaLibData" scope="page"/>

<html><head><title>JSP Test</title></head>

<body bgcolor="#FFFFFF">

<select name="select">
        <%
                MediaLibData.getEngineerNames();
        %>
</select></body>
</html>
------------------------------------------

I put my bean's class file in a directory, and then I added that directory to the classpath before I started the "startserver.bat" file. My bean is not part of a package or anything.

All of the examples from the JSWDK-1.0 work fine. Also, if I don't use a bean, but just use a scriplet, then that jsp file compiles and work fine as well.

Is my JSP code bad, or am I not putting my bean where it should be?

Any help will be GREATLY appreciated.


Thanks,

Bruce

Reply via email to