• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Session Bindin?

 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlet Spect says in page 59

� valueBound
� valueUnbound

The valueBound method must be called before the object is made available via the getAttribute method of the HttpSession interface. The valueUnbound
method must be called after the object is no longer available via the getAttribute method of the HttpSession interface.

Can somebody explain this.?

Regards Chaminda
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Compared to other parts of the spec, this paragraph seems to be pretty clear What are you uncertain about?
[ February 17, 2007: Message edited by: Ulf Dittmer ]
 
Chaminda Amarasinghe
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think manually no need to call above methods... when we bound (or unbound) container will call these methods... So why

The valueBound method must be called before the object is made available via the getAttribute method of the HttpSession interface



Regards,
Chaminda
 
Enthuware Software Support
Posts: 4468
42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Chaminda (SCJP) Amarasinghe:
I think manually no need to call above methods... when we bound (or unbound) container will call these methods... So why

Regards,
Chaminda



You are right, we don't call these methods in our code. The above statement is actually a directive to the servlet container vendors regarding when their container should call these methods. In other words, if you were writing a servlet container, you would have to call these methods as explained by the specification.
 
Chaminda Amarasinghe
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Paul...

Can uu tell me more about the simulator that is promoted in your signature..

Regards Chaminda
 
Thanks tiny ad, for helping me escape the terrible comfort of this chair.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic