Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session Bindin?

 
Chaminda Amarasinghe
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
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • 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
 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3819
10
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic