PDA

View Full Version : JavaRPC with Object Attribute


EddiesiMed
01-22-2006, 06:22 PM
sorry in my English

I use javarpc to call java method
it return object but i can't use that
object attribute cause it private attribute

can someone tell me how to use that object attribute

Example object :
public class ContactVO
{
private String contactId;
private String contactName;
private String contactSurname;
private String phoneNumber;
public ContactVO(String contactid ,String name, String surname, String phoneNumber)
{
this.contactName = name;
this.contactId = contactid;
this.contactSurname = surname;
this.phoneNumber = phoneNumber;
}
}

DanteTHB
01-25-2006, 03:11 AM
write a function in you´re java:

public String getContactID(){
return contactID;}

and then you have to call the func in Laszlo:
<remotecall funcname="getContactID"...>
...