Title: Newbie (trying) to use a bean
   
  We are from FGS Infotech Private Limited .
       The problem may be Mr.Hopkins that u cannot call a class you have to put the class file inside the "beans" directory
Give a name to your package . After the call the file as
 <jsp:useBean class="<package>.<yourclassfile>".
 Even I encountered the same problem .Any queries can be sent to [EMAIL PROTECTED]
-FGS Infotech Private Limited,India.
 
 
 
 
   
 
----- Original Message -----
Sent: Tuesday, November 16, 1999 2:06 AM
Subject: 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