{"id":56889,"library":"servletapi","title":"Servlet API","description":"The Java Servlet API for building web applications, providing interfaces for request handling and server interaction.","status":"active","version":"2.4-20030804.000000","language":"java","source_language":null,"source_url":null,"tags":["servlet","web","java-ee","http"],"install":[{"cmd":"<dependency>\n  <groupId>servletapi</groupId>\n  <artifactId>servletapi</artifactId>\n  <version>2.4-20030804.000000</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'servletapi:servletapi:2.4-20030804.000000'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"HttpServlet","correct":"javax.servlet.http.HttpServlet"}],"quickstart":{"code":"import javax.servlet.http.HttpServlet;\nimport javax.servlet.http.HttpServletRequest;\nimport javax.servlet.http.HttpServletResponse;\nimport java.io.IOException;\n\npublic class MyServlet extends HttpServlet {\n    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {\n        resp.getWriter().write(\"Hello, World!\");\n    }\n}","lang":"java","description":"Create a simple HTTP servlet"},"warnings":[{"fix":"Use jakarta.servlet:jakarta.servlet-api for Servlet 5.0+ or javax.servlet:javax.servlet-api for Servlet 4.0.","message":"This artifact is very old (2004) and uses javax.servlet; modern apps should use jakarta.servlet.","severity":"breaking","affected_versions":"*"}],"env_vars":null,"search_vec":"'api':2,6 'applic':10 'build':8 'ee':23 'handl':15 'http':24 'interact':18 'interfac':12 'java':4,22 'java-e':21 'provid':11 'request':14 'server':17 'servlet':1,5,19 'web':9,20","created_at":"2026-06-15T10:54:18.775220+00:00","updated_at":"2026-06-15T10:54:18.775220+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":"https://appdoc.app/artifact/servletapi/servletapi/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}