Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 80052 invoked from network); 25 Sep 2006 22:41:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Sep 2006 22:41:50 -0000 Received: (qmail 24846 invoked by uid 500); 25 Sep 2006 22:41:41 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 24835 invoked by uid 500); 25 Sep 2006 22:41:41 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 24823 invoked by uid 99); 25 Sep 2006 22:41:41 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Sep 2006 15:41:41 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=danielccss@gmail.com; domainkeys=good Authentication-Results: idunn.apache.osuosl.org smtp.mail=danielccss@gmail.com; spf=pass X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE Received-SPF: pass (idunn.apache.osuosl.org: domain gmail.com designates 66.249.82.233 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [66.249.82.233] ([66.249.82.233:41529] helo=wx-out-0506.google.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id BC/00-03290-42B58154 for ; Mon, 25 Sep 2006 15:41:40 -0700 Received: by wx-out-0506.google.com with SMTP id h26so2333373wxd for ; Mon, 25 Sep 2006 15:41:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Rw1I090LspIJvQYEGOsefxpOnkKFNtzbwgA4zzBTKZXIBWBrHQE1wQ5LXDsTKrG8w5SYVRCS0QQfU1rxi/JMSJEUCdFjf9t3fqDDgIsgrKybpKOccN4v6G5krMB9JZWydK24hKYDoKCP6o88dLhTlUQGNzPFeAixr5U2VEdjOY0= Received: by 10.90.113.18 with SMTP id l18mr608232agc; Mon, 25 Sep 2006 15:41:37 -0700 (PDT) Received: by 10.90.89.1 with HTTP; Mon, 25 Sep 2006 15:41:37 -0700 (PDT) Message-ID: <82701c100609251541k55806afav26e2220aee52ca95@mail.gmail.com> Date: Mon, 25 Sep 2006 16:41:37 -0600 From: "=?ISO-8859-1?Q?Daniel_Chac=F3n_S=E1nchez?=" To: "Struts Users Mailing List" , jhking@airmail.net Subject: Re: Erase Only some Session Objests and variables In-Reply-To: <45185944.8040309@airmail.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1753_32751565.1159224097885" References: <82701c100609251406m2e7991c8l2e60cc2c6b402359@mail.gmail.com> <82701c100609251407sca98fefpbc8c8b5ed25b75f1@mail.gmail.com> <45185944.8040309@airmail.net> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_1753_32751565.1159224097885 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline What do you suggest me to use for keep that "preserve" names? A file, an arrayList, or what? An example code of the use of that with the code that Heidy gived?? 2006/9/25, Jason King : > > Daniel Chac=F3n S=E1nchez wrote: > > son =3D some :P > > > > 2006/9/25, Daniel Chac=F3n S=E1nchez : > >> > >> Hi all, > >> > >> How I can kill son objects and variables in session, without kill > >> everything in session like with session.invalidate(). > >> > >> I want that some objects always be in session and when I press a menu > >> option all other variables or object that are in session be erase. > >> > >> i can=B4t use removeAttribute(..); because I don=B4t know the name of = all > >> objects and variables that be in session in a moment. I need to erase > >> everything from sesion except son object that always need in session, > >> how > >> can i do that? > >> > >> I'm using struts framework > >> > > > Since the session object is a map you could get a list of keys and for > each key compare it to your list of "preserve" names. If its not in the > name, remove it. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > ------=_Part_1753_32751565.1159224097885--