3.2 删除XxxControler中各方法中的response
作者:互联网
3.2.1 EmpController代码
package com.hy.controller; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class EmpController { public String index(HttpServletRequest request) { System.out.println("EmpController...index"); return "forward:/WEB-INF/emp/index.jsp"; } public String login(HttpServletRequest request) { String ename = request.getParameter("ename"); String pwd = request.getParameter("pwd"); return "redirect:emp.do?ac=index"; } }
标签:HttpServletRequest,index,String,request,public,EmpController,3.2,XxxControler,re 来源: https://www.cnblogs.com/fan3/p/16316168.html