• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

about RequestListners ??

 
Ranch Hand
Posts: 188
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone give me the spec link for
HttpServletRequestEvent and
HttpServletRequestListener

Have been trying to find it but have not suceeded

Thanks
 
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just google these names and you will get some information , including the Java Doc links
 
Sudarshan Sreenivasan
Ranch Hand
Posts: 188
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
after ggogling these names you get nothing and certainly not any java doc links ... because these interfaces do not exist its ServletRequestListener rather than HttpServletRequestListener ...... i just found out about this !!

Must make a note of it for the exams !!

Thanks a lot
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
if you refer ...\webapps\tomcat-docs\servletapi-you can find that there is no class named HttpServletRequestListener and HttpServletRequestEvent.there is only ServletRequestListener and ServletRequestEvent
 
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by sid sree:
Can anyone give me the spec link for
HttpServletRequestEvent and
HttpServletRequestListener



As per the information available in the Manning's SCWCD Exam Study Kit,


The last listener interface we�ll present keeps track of the life cycle of an HttpServletRequest. It receives notification whenever a request comes into scope.

ServletRequestListener methods and Descriptions:

  • void requestDestroyed(ServletRequestEvent sce): Called when the request is destroyed
  • void requestInitialized(ServletRequestEvent sce): Called when the request is initialized



  • It�s important to inform the web container about your listener classes. This involves setting parameters within the deployment descriptor



    HttpServletRequestEvent is what given to the listeners during the notification. I believe you could have got that by now.

    Does this give you some required info?
     
    reply
      Bookmark Topic Watch Topic
    • New Topic