Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Life cycle Events

 
priya Agrawal
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In the specfication they mention that we have to configer the HttpSession and ServletContext lifecycle Event in DD(i.e ServletcontextListner and HttpSessionListner). But in the case of ServletRequest they didnt mention so

Is we configer the ServletRequest in DD or not?

thanks,
Pritesh Agrawal
 
Marcus Green
arch rival
Rancher
Posts: 2813
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you expand your question, I don't quite understand it.
 
Amit Tayal
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As per my understanding you are asking about listerners.
So,we have to configure all the listeners in DD except for HttpSessionActivationListener and HttpSessionBindingListener.

Amit
 
priya Agrawal
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should we register the Event for ServletRequest life cycle in web.xml like a HttpSession and ServletContext Lifecycle Event.....
 
priya Agrawal
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But in servlet Specification they didnt mention for Servlet Listner.....
 
priya Agrawal
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amit are you sour for both this listner are no need to configer in web.xml....!!!

just for clerfication......
 
Mohd Fuzail
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So,we have to configure all the listeners in DD except for HttpSessionActivationListener and HttpSessionBindingListener.


Yeah he is right... apart from these two listeners rest we need to Configure in DD
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Fuzail-

You've been around JavaRanch long enough to know that it has a policy on display names, and that yours does not comply with it; specifically, a first name and a last name are required. Please adjust it accordingly, which you can do right here. Thanks for your prompt attention to this matter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic