You need to specify the property name with a lower case first letter Cheers Chris -----Original Message----- From: Frank Applin [mailto:fapplin@ix.netcom.com] Sent: Tuesday, August 15, 2000 4:12 PM To: tomcat-user@jakarta.apache.org 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 r.java:101) at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(J spParseEventListener.java, Compiled Code) at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventLi stener.java, Compiled Code) at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseE ventListener.java:169) at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:149) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:161) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338 ) at java.lang.Thread.run(Thread.java:479) **************************************************************************** ****** 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 (rs.next ()) { 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 () + "