Can I store arrays in a session? How would I call it from another jsp?

Pretty straight forward question. I need to save a parameter in an array. This variable can change so I need to save the different values in an array. Can I call this array from another jsp? Thanks in advance.Mike
[234 byte] By [mikesab] at [2007-9-26 6:28:26]
# 1
Arrays are Java objects, so yes, you can store them as Request, Session, or Context named attributes, just as you would with any other Java object.
blutofsky at 2007-7-1 15:34:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Did you figure it out hor to store array values in a session?
simonjoshi at 2007-7-1 15:34:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
i think something like this should work... jsp 1:int arr[]={1,2,3,4,5};session.put("arrname",arr);and in jsp 2: int[] arr=(int[])session.get("arrname");hope this helps.
rajeev_gol at 2007-7-1 15:34:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...