Código HTML:
import java.io.*; import javax.servlet.*; import java.servlet.http.*; public class ServletProcesaInfo extends HttpServlet{ public void do Get(HttpServletRequest request, HttpServletResponse response) throws Servlet Exception, IOException{ response.setContentType("text/html"); PrintWriter out = response.getwriter(); out.println("<html><body><ul>"+ "<li>cadena: <i>"+request.getParameter("cadena")+"</i>" ); out.println("</ul></BODY></HTML>"); } public void doPost (HttpServletRequest request,HttpServletResponse response) throws ServletException´{ doGet (request,response); } }