Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 335607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:09:52+00:00 2026-05-12T10:09:52+00:00

In NetBeans 6.7.1, I have made a j2ee project, In this project I have

  • 0

In NetBeans 6.7.1, I have made a j2ee project,

In this project I have Servlet that extends HttpServlet,
Of whatever little I know about servlets, they should have a service method however in the class in NetBeans I find only thefollowing methods.

protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {}
protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {}
protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {}
public String getServletInfo() {}

doGet and doPost in call the processRequest method.
Where is the service method?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T10:09:52+00:00Added an answer on May 12, 2026 at 10:09 am

    A servlet does not need to (re)implement the service() method of the javax.servlet.Servlet or javax.servlet.http.HttpServlet class. Regurgitating from the API doc, the service() method is used to dispatch requests to the doXXX() methods of the servlet. It is already implemented in the HttpServlet class, for the HTTP protocol, and hence there is no need to override it in another servlet relying on the HTTP protocol.

    By the way, NetBeans automatically creates the doGet(), doPost(), getServletInfo() and processRequest() methods for convenience, when you create a servlet. It does not mean that the service() method is not available – most servlet programmers do not have to implement the service() method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question about netbeans. I made a new netbeans php project, configured
I have a NetBeans java project. This project ( src folder) is composed of
I have a project in NetBeans with JUnit tests. I made a change to
I am newbie in Zend framework.And i have made sample project in netbeans.And it
I have made a project in NetBeans IDE using a custom library (a .JAR
I have made a little program in java that accepts a string as a
I have an project in NetBeans. I made some preparations to make database migration
so I have this project in java that uses a jni .dll i wrote
In Vaadin's website it says that only Eclipse and NetBeans have fully functional (which
I have a NetBeans project set up with a bunch of source classes and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.