File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt with Session listeners [from enthuware]

 
Adolfo Eloy
Ranch Hand
Posts: 146
Eclipse IDE Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Question from enthuware: enthuware.jwpv6.2.1045:
Which of the following events allow you to access the HttpSession attribute that cause the event to be fired?


The doubt lies among these two answers:
- HttpSessionBindingEvent
- HttpSessionAttributeEvent

When I create a listener of type HttpSessionAttributeListener, I can retrieve the same data as I can when using HttpSessionBindingEvent. And further, I can get the attribute that cause the event considering all objects/values that can be added to the Session attribute.

I still think that the right answer is HttpSessionAttributeEvent.

Anybody could help me with this question?
Thanks.
 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3665
9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adolfo Eloy wrote:

The doubt lies among these two answers:
- HttpSessionBindingEvent
- HttpSessionAttributeEvent

When I create a listener of type HttpSessionAttributeListener, I can retrieve the same data as I can when using HttpSessionBindingEvent. And further, I can get the attribute that cause the event considering all objects/values that can be added to the Session attribute.

I still think that the right answer is HttpSessionAttributeEvent.

Anybody could help me with this question?
Thanks.


Answered here.

HTH,
Paul.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic