setAttribute is defined in servlet API 2.2. you might be using an older
version. so check your version.
Rgds
Satya
-----Original Message-----
From: Antonio W. Lagnada [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 10, 2000 4:46 AM
To: [EMAIL PROTECTED]
Subject: Re: can i store an ArrayList in Session?
That's strange -- setAttribute should be able to take in any object.
--
Antonio W. Lagnada
Ecommerce Consultant
[EMAIL PROTECTED]
This email address is specifically
for JSP-Interest email list.
Remove _NOSPAM for the actual email.
---- Ginni <[EMAIL PROTECTED]> wrote:
> hi everybody!
>
> i m trying to store an ArrayList in session ..here is the code....
>
> <%@ page language="java" import="java.util.*"%>
> <%@ page errorPage="errorpage.jsp" %>
>
> <%
> String [] values;
> ArrayList al = new ArrayList();
> values = request.getParameterValues("product");
>
> for (int i=0;i<values.length;i++){
> al.add(values[i]);
> }
> session.setAttribute ("SelectedProducts", al);
> %>
>
> it gives me the following error....
>
> Method setAttribute(java.lang.String, java.util.ArrayList) not found
> in
> interface javax.servlet.http.HttpSession.
>
> what do i do?
>
>
> thanks for your time,
>
>
>
>
> :-)
> Have a great Day!
> -Ginni
>
>
========================================================================
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
___________________________________________________________________
To get your own FREE ZDNet Onebox - FREE voicemail, email, and fax,
all in one place - sign up today at http://www.zdnetonebox.com
========================================================================
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets