Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the order of execution???  RSS feed

 
Chandra Bairi
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,
what is the order of exectuion?
public service(), protected service(ServletConfig config), doGet(), doPost()
when the servlet is called and the above methods exist in the servlet class?
regards,
shekar.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65825
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since this is a Servlet rather than a JSP question, moving to the Servlets Forum.
 
Afroz Ahmed
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai
The execution order is
public service(ServletRequest,ServletResponse)
protected service(HttpServletRequest,HttpServletResponse)
doGet()/doPost() depending on request method.
Regards
Afroz Ahmed.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!