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!


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866297#3866297

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866297


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to