【www.bbyears.com--Action】
Java代码
ActionContext.getSession().put("loginUserType", user.getType());
ActionContext.getSession().put("loginUserType", user.getType());
字段type 是 user 对象的一个String 属性
而后我在jsp页面中用
Java代码
得到type的值,再根据type的值来输出相应的下拉菜单
Java代码
您犯低级错误了。。。