----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------


----- Original Message ----- 
From: moin <[EMAIL PROTECTED]>
To: Java Apache Users <[EMAIL PROTECTED]>
Cc: jon * <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, May 04, 2000 11:56 PM
Subject: Sessions in servlet


> 
> I want to store array as a session can I do it. If so can anyone of u
> please let me know how to do it.
> Thanks in advance,
> Regards,
> Moin
> 
> 


Hi,

Your question is kind of off-topic, It is related to Servlets not to JSERV.
Try to get an answer from [EMAIL PROTECTED]

If You are asking of storing an array in a session the answer is yes.
The array is is an object and any (serializable) object can be stored
 in the session.

String months[]={"January","February"};

HttpSession mysession=request.getSession(true);
mysession.put("web.months",months);

String getmonths[]=(String [])mysession.get("web.months");


Best wishes,

                    Andras.


 







--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to