代码:
{
getHttpServletRequest().setAttribute("groupId",groupId);
return "filldata";
}
1.就是把一个groupId对象放在HttpServletRequest中,你可以通过getAttribute("groupId");方法得到groupId对象.
2.就是把一个groupId对象放在HttpServletRequest中,你可以通过getAttribute("groupId");方法得到groupId对象.
3.就类似HashMap里的set和get方法
一个是KEY 一个是VALUE
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9294812/viewspace-1011123/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9294812/viewspace-1011123/