Friday, 15 January 2010

java - Work with session beans -



java - Work with session beans -

i have 2 session beans.

class a{ private sting name; } class b{ }

how can a.name in b bean?

you create variable public in class a , create object class a example

public class b {

public static void main(string args[]) { testex = new a(); string testexample = testex.name; system.out.print(testexample); }

}

public class a{ public string name;

}

java javabeans

No comments:

Post a Comment