Java servlets allow users to run Java code on the server and send HTML pages to a browser.<br><br>The Java Servlet API allows a software developer to add dynamic content to a web server using the Java platform. <br><br>The generated content is commonly HTML, but may be other data such as XML.