Problem solve. As I suppossed it was a silly newbie error. I was adding the
attribute to the request object but the new event listenter interface I was
implementing was HttpAttribute*Session*Listener. I need to add the attribute
to the whole session, not just a single request (since there could be, and
used to be, more than one request/response per session). So the right code
is fairly like the other one except when adding and removing the attributes,
the correct lines are these ones:

To add:
...
*String foo = "bar";
request.getSession().setAttribute("new_attr", foo);
*...

To remove:
...
*request.getSession().removeAttribute("new_attr");*
...

Thread closed, thanks everyone.


-- 
David

PD: Excuse my english, i'm doing my best to write as well as i can :(

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to