aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes about RequestListners ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "about RequestListners ??" Watch "about RequestListners ??" New topic
Author

about RequestListners ??

Sudarshan Sreenivasan
Ranch Hand

Joined: Jun 28, 2007
Posts: 188

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

Joined: Apr 20, 2002
Posts: 510
Just google these names and you will get some information , including the Java Doc links
Sudarshan Sreenivasan
Ranch Hand

Joined: Jun 28, 2007
Posts: 188

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

Joined: Jun 11, 2007
Posts: 26
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

Joined: Apr 20, 2006
Posts: 3344

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?


    Everything has got its own deadline including one's EGO!
    [CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
     
     
    subject: about RequestListners ??