This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: session
 
Similar Threads
Alternative to Cookie?
Field set in action method coming null in JSP
Session problem in NetBeans
Advice on persisting complex state across multiple server trips
ASP