import java.util.*;
public class ThreeParams extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html");
PrintWriter out = response.getWriter();
String title = "读取三个请求参数";
out.println(ServletUtilities.headWithTitle(title)+"<html>"+"<BODY>" + "<H1 ALIGN=CENTER>"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~这个地方有错误
+ title + "</H1>" + "<UL>"
+" <LI>param1: " + request.getParameter("param1")+ " <LI>param2: " + request.getParameter("param2") +
" <LI>param3: " + request.getParameter("param3") + "</UL>" + "</BODY> "+"</html>"
)
;
public class ThreeParams extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html");
PrintWriter out = response.getWriter();
String title = "读取三个请求参数";
out.println(ServletUtilities.headWithTitle(title)+"<html>"+"<BODY>" + "<H1 ALIGN=CENTER>"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~这个地方有错误
+ title + "</H1>" + "<UL>"
+" <LI>param1: " + request.getParameter("param1")+ " <LI>param2: " + request.getParameter("param2") +
" <LI>param3: " + request.getParameter("param3") + "</UL>" + "</BODY> "+"</html>"
)
;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货