hi,
I have a
jsp application running on Linux 8.0 with
Tomcat 3.3a as the server.
The problem is I have put an
String arr[] in the session object. When i get the arr[] for the first time it works fine,but when i reload the page the data in the arr[] becomes blank but the length shown is fine.
For detail clarification
------------------------
1) UserInfo.java
private String sClientPlaceId[];
The get and set methods are provided in this class as below;
public String[] getClientPlaceId()
{
return sClientPlaceId;
}
public void setClientPlaceId(String sClientPlaceId[])
{
this.sClientPlaceId = sClientPlaceId;
}
2) I am putting setting the above array at the time of logging in the system and into the Session after setting it.
3) When i generate the a report for the first time i log in i get the values in the arr1 and the length shown is also fine
e.g. arr1.length = 79
arr1[0] = "User 1"
But when i reload the same Jsp page the get the array values as below
String tt[] = user.getClientPlaceId ;
tt.length = 79 is fine ,but
tt[0] = "" shows blank
I am not setting again the array anywhere else. and how it is working when i load it first time and not the page is loaded the second time.
Can anyone help me out Please ,its urgent.
Thanx,
Fx
[ December 01, 2003: Message edited by: Bear Bibeault ]