out.println("\"http://www.wapforum.org/DTD/wml_1.1.xml\">");
out.println("<wml>"); out.println("<card title=\"test\">");
out.println(" <p align=\"center\">"); out.println("you selected "+select);
out.println("</p>"); out.println("</card>"); out.println("</wml>");
}
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
doGet(request,response);
}
}
正确部署Servlet和wml文件后,在winwap下输入http://222.28.218.222:8088/test2.wml 确认后就可以看到you selected xxxx的内容了。

