• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about RequestListners ??

 
Sudarshan Sreenivasan
Ranch Hand
Posts: 188
IntelliJ IDE Java MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Michael Ku
Ranch Hand
Posts: 510
  • 0
  • Mark post as helpful
  • send pies
  • 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 Java MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
nagalatha mitta
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • 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?
     
    It is sorta covered in the JavaRanch Style Guide.
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic