这段代码有问题吗,怎么我运行报错?

JAant 发布于 2013/08/23 11:00
阅读 88
收藏 0
@Action(value = "west", results = { @Result(name = "west", location = "/WEB-INF/module/core/page/jsp/index/layout/west.jsp") })
	public String west() {
		List<FunctionModel> myFuns = (List<FunctionModel>) ActionContext
				.getContext().getSession().get(Contents.MYFUNS);
		List<FunctionModel> funlist = new ArrayList<FunctionModel>();
		if (myFuns != null && myFuns.size() > 0) {
			for (FunctionModel fun : myFuns) {
				if (fun.getPk_parent() == null) {
					funlist.add(fun);
				}
			}
		}
		ServletContextUtil.putModel("funlist", funlist);
		return "west";
	}
加载中
返回顶部
顶部