You need to specify the property name with a lower case first letter Cheers Chris -----Original Message----- From: Frank Applin [] Sent: Tuesday, August 15, 2000 4:12 PM To: Subject: need help... Can someone help? I've been working through the book "Pure JSP - A Code Intensive Premium Reference" by James Goodwill. I have been using the Tomcat server just fine through all of the examples, until I tried to do something on my own. I've created a very simple JavaBean and a very simple JSP, but I can't seem to get beyond an error (see below). **************************************************************************** ****** The book instructed on how to change the server.xml file (which I did): **************************************************************************** ****** My .class file is located in purejsp/WEB-INF/classes directory and my .jsp file is located in the purejsp directory. **************************************************************************** ****** Here's the error that I keep getting: Error: 500 Location: /purejsp/CustomerList.jsp Internal Servlet Error: org.apache.jasper.JasperException: Cannot find any information on property 'CustomerList' in a bean of type 'CustomerInformation' at org.apache.jasper.runtime.JspRuntimeLibrary.getReadMethod(JspRuntimeLibrary. java, Compiled Code) at org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerato at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(J, Compiled Code) at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventLi, Compiled Code) at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseE at org.apache.jasper.compiler.Compiler.compile(, Compiled Code) at org.apache.jasper.runtime.JspServlet.loadJSP( at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:161) at org.apache.jasper.runtime.JspServlet.serviceJspFile( at org.apache.jasper.runtime.JspServlet.service(, Compiled Code) at javax.servlet.http.HttpServlet.service( at org.apache.tomcat.core.ServletWrapper.handleRequest(, Compiled Code) at org.apache.tomcat.core.ContextManager.service( at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC at ) at **************************************************************************** ****** Here's the JSP: <%@ page errorPage="errorpage.jsp" %> Customer List Page **************************************************************************** ****** Here's the JavaBean, I've commented out most of the code to keep it as simple as possible: import java.lang.*; import java.sql.*; import java.util.*; public class CustomerInformation { public String CustomerList = ""; private Hashtable customerInfo = new Hashtable (); public CustomerInformation() { /* try { Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection ("jdbc:odbc:AsaDemo", "dba", "sql"); Statement smnt = con.createStatement (); ResultSet rs = smnt.executeQuery ("SELECT id, company_name FROM customers"); while ( ()) { String id = (new Integer (rs.getInt (1))).toString (); String companyName = rs.getString (1); customerInfo.put (id, companyName); } //end while con.close (); } //end try catch (Exception e) { System.err.println (e.getMessage ()); }//end catch */ } //end constructor public String getCustomerList () { return CustomerList; } //end method public void setCustomerList (String value) { /* StringBuffer html = new StringBuffer (); html.append (""); Enumeration elements = customerInfo.elements (); while (elements.hasMoreElements ()) { html.append (""); html.append (""); html.append (""); html.append (""); } //end while CustomerList = html.toString (); */ CustomerList = value; } //end method } **************************************************************************** ******
" + (String) elements.nextElement () + "" + (String) elements.nextElement () + "