摘要: 1/*** Struts2判断GET/POST请求*/String method = ServletActionContext.getRequest().getMethod();System.out.println(method);if (method.equals("POST")) {// 注意全部大写System.out.println("POST请求");} else {System.out.println("GET请求");}2、当服务器上跑一个工程时,访问index.jsp的方法是get方法Done 阅读全文
posted @ 2014-03-31 20:29 行云有影 阅读(3229) 评论(0) 推荐(0)