AW: Erase Only some Session Objests and variables

2006-09-25 Thread Eickvonder Bjoern
Chacón Sánchez [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 25. September 2006 23:07 > An: Struts Users Mailing List > Betreff: Erase Only some Session Objests and variables > > Hi all, > > How I can kill son objects and variables in session, without > kill everything in sessio

Re: Erase Only some Session Objests and variables

2006-09-25 Thread Daniel Chacón Sánchez
y. Ltd. Off : +61-3-9618-4085 Mob : +61-0411-354-838 "Daniel Chacón Sánchez" <[EMAIL PROTECTED]> 26/09/2006 08:41 AM Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" , [EMAIL PROTECTED] cc: Subject:

Re: Erase Only some Session Objests and variables

2006-09-25 Thread paz . periasamy
ROTECTED]> 26/09/2006 08:41 AM Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" , [EMAIL PROTECTED] cc: Subject: Re: Erase Only some Session Objests and variables What do you suggest me to use for ke

Re: Erase Only some Session Objests and variables

2006-09-25 Thread Daniel Chacón Sánchez
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 <[EMAIL PROTECTED]>: Daniel Chacón Sánchez wrote: > son = some :P > > 2006/9/25, Daniel Chacón Sánchez <[EMAIL

Re: Erase Only some Session Objests and variables

2006-09-25 Thread Jason King
Daniel Chacón Sánchez wrote: son = some :P 2006/9/25, Daniel Chacón Sánchez <[EMAIL PROTECTED]>: 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 me

Re: Erase Only some Session Objests and variables

2006-09-25 Thread Daniel Chacón Sánchez
thaanks! I will use it 2006/9/25, Heidy Gutiérrez Guzmán <[EMAIL PROTECTED]>: You can use this code: Enumeration enumeration = session.getAttributeNames(); while (enumeration.hasMoreElements()) { String element = (String) enumeration.nextElement(); session

Re: Erase Only some Session Objests and variables

2006-09-25 Thread Heidy Gutiérrez Guzmán
You can use this code: Enumeration enumeration = session.getAttributeNames(); while (enumeration.hasMoreElements()) { String element = (String) enumeration.nextElement(); session.removeAttribute(element); } If yo don't have delete any element, you can do this: Enumeration enume

Re: Erase Only some Session Objests and variables

2006-09-25 Thread Daniel Chacón Sánchez
son = some :P 2006/9/25, Daniel Chacón Sánchez <[EMAIL PROTECTED]>: 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

Erase Only some Session Objests and variables

2006-09-25 Thread Daniel Chacón Sánchez
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´t use removeAttribute(..