Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

session variables using set and get attributes

Status
Not open for further replies.

technohead

Technical User
Jan 12, 2002
64
0
0
US
Hi,
i want to create a session variable by putting them in a class of their own first.
so if i have the following details how do i use the set and get attributes in the class.

public class GSTSUser
{
public GSTSUser()
{
String userName;
String usertype;
String brokerId;
String password
}
 
public class GSTSUser
{
public GSTSUser()
{
String userName;
String usertype;
String brokerId;
String password
}
public String getUserName() {
return userName;
}
// and so on - these are called accessor methods
// you may want to make these variables private also ...
}

Ben
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top