Pedro Meza wrote:
>
> I am getting this error:  Cannot create bean of class checkbox.Client
>
> I do not know why ????  The following is my code for the class.  I am trying to
> read records from a file readDB()
> and using jsp be able to get the values for the record such as getcuid()
> and go to the next file record nextRecord().
>
> package checkbox;
>
> import java.io.*;
> import java.util.StringTokenizer;
>
> public class Client {
> [...]
>  //Constructor
>  public Client(String[] Value, Client new_client)
> [...]

A bean must have a no-args constructor. That's the constructor the bean
container (in this case the JSP container) will call to create an
instance. Since your class doesn't specify a no-args constructor, it
fails. Instead of setting variables through the constructor, use
separate setter methods. I suggest you read the JavaBeans spec for
details:

  <http://java.sun.com/beans/index.html>

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com

===========================================================================
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