spring mvc 页面取不到 request model 中的值 10
publicStringgetSysUser(HttpServletRequestrequest,HttpServletResponseresponse,Modelmod...
public String getSysUser(HttpServletRequest request, HttpServletResponse response, Model model, Writer writer) throws ControllerException {
request.setAttribute("aaa", "gaga");
model.setAttribute("bbb",client);//client 实体类
return "/systemmanage/user/v006";}
在v006.jsp中
<input id="a" name="a" value=<%=request.getAttribute("aaa") %> size="22" />
取得的值是空
<input id="a" name="a" value='${bbb.name}'size="22" />
取不到值
页面取不到值,求大神解释啊 展开
request.setAttribute("aaa", "gaga");
model.setAttribute("bbb",client);//client 实体类
return "/systemmanage/user/v006";}
在v006.jsp中
<input id="a" name="a" value=<%=request.getAttribute("aaa") %> size="22" />
取得的值是空
<input id="a" name="a" value='${bbb.name}'size="22" />
取不到值
页面取不到值,求大神解释啊 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询