• Post Reply Bookmark Topic Watch Topic
  • New Topic

Conversion problem in jsp

 
Pradeep Dhavakumar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am setting a 2-D array as an "Object" in a session and getting it back as an "object" in another page.Is there any way to get my "2-D array" back from the "Object" ( I am not able to typecast)? Or is there any other way to set and get multi-D arrays in session ?

Kindly help.Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can cast an object to anything that it really is. So if you put an Xyz[][] in the session, you should be able to cast it as such on the way out.
 
Pradeep Dhavakumar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.Got it now.Was type casting the wrong way..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!