ActionContext.getContext()传值的三种方式,和session取到值而request去不到值的一种可能

来源:互联网 发布:手机中文编程 编辑:程序博客网 时间:2024/06/06 18:12

后台  ActionContext.getContext().put("greeting")    前台 ${requestScope.greeting} 

后台 ActionContext.getContext().getSessio().put("greeting")   前台 ${sessionScope.greeting}

后台  ActionContext.getContext().getApplication().put("greeting"}  前台 ${ApplicationScope.greeting}



如果在session中可以取到值,而同处的request却取不到值的话,有一种可能是这个request已经作废,即在前台已经进行了下一步跳转。

原创粉丝点击