package io.bitbucket.hernandezblasantonio.jee002.servlets; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @WebServlet(description = "Servlet para el procesamiento de un formulario de HTML", urlPatterns = { "/ServletHtmlFormulario", "/html-formulario" }) public class ServletHtmlFormulario extends HttpServlet { private void mostrarFormularioHtml(HttpServletRequest solicitud, HttpServletResponse respuesta) throws IOException { respuesta.setContentType("text/html"); respuesta.setCharacterEncoding("UTF-8"); PrintWriter salida = respuesta.getWriter(); StringBuffer documentoHtml = new StringBuffer(); documentoHtml.append(""); documentoHtml.append(""); documentoHtml.append("
String
" + input_checkbox + "
" + input_color + "
" + input_date + "
" + input_datetime_local + "
" + input_email + "
" + input_file + "
" + input_image + "
" + input_month + "
" + input_number + "
" + input_password + "
" + input_radio + "
" + input_range + "
" + input_search + "
" + input_tel + "
" + input_text + "
" + input_time + "
" + input_url + "
" + input_week + "
" + button_button + "
" + button_reset + "
" + input_hidden + "
" + button_submit + "