Hi,

I had created a new Listener implementing HttpSessionBindingListener and added 
log statements to attributeAdded method and in my servlet service method added 
the following statement

request.getSession().setAttribute("username", usernamefromjsp);

Every time i call this servlet the session attribute is replaced with a 
different username which I key in a text field.

However the attributeAdded is fired only once. I have also placed the log in 
attributeReplaced method but still the same behaviour

Am I doing something wrong ? I was expecting everytime the attribut added to 
the session then the event would be fired. Also iam changing the value of the 
attribute is there any way i can get to know through a listener when the 
attribute is set ?

Hope i made my question clear

Thanks in advance
Vijay

--~--~---------~--~----~------------~-------~--~----~
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