parvathi Viswanathan

Greenhorn
+ Follow
since Sep 25, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by parvathi Viswanathan

hi
thanks. that worked!
best regards
Parvathi
23 years ago
Hi
How can you store a String array in a session in JSP and access it from a different JSP page?
say, arr is a two dimensional array of Strings. I have put this in a session using session.setAttribute("session_array",arr).
In a different JSP file when I try to get this using the following.
String new_arry[][] = new String[rows][cols];
new_array = session.getAttribute("session_array");
I get an error saying new_array is a of type java.lang.String whereas the right hand side is an Object (java.lang.Object). Please help.
I have tried to declare this new_array as Object. But how do I use it as an array? What kind of casting / type conversion should I use?
Any help will be useful. Tight deadlines!!!
Parvathi. (vparvathi@i-three.com)
23 years ago