The purpose of a servlet is to create a Web page in response to a client request. Servlets are written in Java, with a little HTML mixed in. Struts is an open-source framework for building more flexible, maintainable and structured front-ends in Java web applications