0 Replies Latest reply on Feb 11, 2005 11:12 PM by garciamonica

    creating a row in Hypersonic SQL DB using JSP to JavaBean to

    garciamonica

      properties in the JSP are lowercase when passed to the JavaBean and defined in the JavaBean as lowercase. The JavaBean has get/set for each property passed. Each get/set function is followed by a capital letter for each property function. The JavaBean make a call to an CMP:


      package com.women.clients;

      import java.util.*;
      import java.io.*;
      import javax.naming.*;
      import javax.rmi.PortableRemoteObject;

      import com.women.member.*;


      //Member is a Bean.
      public class Member implements Serializable {


      private String id;
      private String firstname;
      private String lastname;
      private String zipcode;
      private String city;
      private String country;

      private MemberHomeRemote home;
      private MemberRemote customer;


      public Member()
      {

      try
      {
      Context jndiContext = new InitialContext();
      Object obj = jndiContext.lookup("MemberHomeRemote");
      home = (MemberHomeRemote)
      PortableRemoteObject.narrow(obj, MemberHomeRemote.class);


      The things with this is that I am able to retrieve data from the DataBase using JSP to JavaBean to Database(Hypersonic SQL database) method, yet I can not create a row( MemberRemote member = home.create(primaryKey) ) when I call create():

      member = home.create(primaryKey,lastName,firstName,zipcode,city,country);

      .

      I would appreciate any input!
      Thanks!