File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "session" Watch "session" New topic
Author

session

mayank jamindar
Ranch Hand

Joined: Aug 01, 2005
Posts: 38
Hi,
Plz help me answer:
an attribute is replaced in the session:
1)None of these
2)HttpSessionBindingListener
mayank jamindar
Ranch Hand

Joined: Aug 01, 2005
Posts: 38
Hi help please:

Question is Can this be detected from the following listner:
an attribute is replaced in the session:

options are :
1)None
2)HttpSessionBindingListener

thanks in advance
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
Option 2 is correct


Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
mayank jamindar
Ranch Hand

Joined: Aug 01, 2005
Posts: 38
Thankyou vishnu,
More suggestions are welcome
Jay Tse
Greenhorn

Joined: Aug 12, 2005
Posts: 11
It's a little confusing since the HttpSessionAttributeListener has a method called attributeReplaced that gets called for an object implementing the HttpSessionAttributeListener interface.

But, I guess if the replaced attribute object implements the HttpSessionBindingListener, then its "valueBound" method would get called when it is added to the session.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session