Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

What is difference between processRequest() and service()?

843841Apr 17 2003 — edited Apr 18 2003
I've seen a few examples on the web where a processRequest method is defined in a servlet extending HttpServlet (http://java.sun.com/blueprints/corej2eepatterns/Patterns/FrontController.html) and others. I'm coming back to servlets after a year and a half, and back then service was the method doing what processRequest seems to be doing in these recent examples. Confusing me even more is that HttpServlet still has a service method defined and it doesn't seem to be deprecated if favor of any processRequest method. Can anyone point me in a useful direction on this? Any help would be appreciated.

Thanks,
Nikhil
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 16 2003
Added on Apr 17 2003
3 comments
979 views