路径:
http://localhost:8888/bxasafety/gov/user/getUser/userEdit?id=519de7a6-858f-4c4a-8bcf-8e39f492e715
后台:
@At("/getUser/?")
@Ok("re")
public String getUser(String htmlName , @Param("..") NutMap map, HttpServletRequest req, ViewModel model) {
try {
model.setv("user", userSer.getUser(map));
model.setv("obj", dicUtil.getAreas());
model.setv("userType", dicUtil.getgovUserType());
return Util.getReHtml("gov", "user", htmlName); //return "beetl:/gov/user/a.html"
} catch (Exception e) {
return null;
}
}
我在页面获取${obj}
结果竟然是:
{id=519de7a6-858f-4c4a-8bcf-8e39f492e715}
求解,不应该是model对象里面的数据吗?