R4R
Right Place For Right Person TM

What are the parameters for service method ?

previous previous previous
Question:
What are the parameters for service method ?

Question:What are the parameters for service method ?


Answer
Most of the servlets are written by extending the HttpServlet class and override the HttpServlet's service() method. This method takes two parameters : * HttpServletRequest, and * HttpServletResponse. HttpServlet class extends the GenericServlet and override the service() method of GenericServlet class, which takes two parameters : * ServletRequest, and * ServletResponse. HttpServletRequest interface extends the ServletRequest interface and HttpServletResponse extends ServletResponse interface.

By:Jalees
Date:

What are the parameters for service method ?

Post Your Answers


User Name:
Answers:

Related Links

  1. How do I prevent the output of my JSP or Servlet pages from being cached by the browser?
  2. How to refer the "this" variable within a JSP page?
  3. Can we implement an interface in JSP ?
  4. How do I use a scriptlet to initialize a newly instantiated bean?
  5. What are JSP Actions?
  6. What is the difference between ServletContext and ServletConfig?
  7. What is a Hidden Comment?
  8. How to pass information from JSP to included JSP?
  9. How do you pass data (including JavaBeans) to a JSP from a servlet?
  10. How can I set a cookie?
  11. How will you delete a cookie?
  12. What JSP lifecycle methods we can override?
  13. How will you include a static file in a JSP page?
  14. How you can perform browser redirection?
  15. Can we use ServletOutputStream object from a JSP page?
  16. How can I invoke a JSP error page from a servlet?
  17. How can I enable session tracking for JSP pages if the browser has disabled cookies?
  18. How can you declare methods in your JSP page?
  19. How can we set the inactivity period on a per-session basis?
  20. How do you pass an init parameter to a JSP?
  21. How can my application get to know when a HttpSession is removed?
  22. How many cookies can one set in the response object of the servlet? Also, are there any restrictions on the size of cookies?
  23. When a session object gets added or removed to the session, which event will get notified ?
  24. What is URL Encoding and URL Decoding ?
  25. What is the difference between an applet and a servlet?
  26. What are the different web servers available name few of them?
  27. What are the different types of ServletEngines?
  28. What is a Session Id?
  29. What is the use of setComment and getComment methods in Cookies ?
  30. Why we are used setMaxAge() and getMaxAge() in Cookies ?
  31. What is the use of setSecure() and getSecure() in Cookies ?
  32. Is HTML page a web component?
  33. What is the container?
  34. What is deployment descriptor?
  35. How can I print the stack trace of an exception from a JSP page?
  36. Do objects stored in a HTTP Session need to be serializable? Or can it store any object?
  37. What is the differecnce between JspWriter and PrintWriter?
  38. How can you implement singleton pattern in servlets ?
  39. What is the difference between an application server and a web server?
  40. Can we implement Runnable interface from within our servlet?
  41. What is RequestPocessor class? How will you create your own RequestPocessor?
  42. Can you test a JSP page using Junit?

Question:What are the parameters for service method ?

Back Home Next

New Updates

Topics

Topics

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R