这里是Action中存的值:ActionContext.getContext().put("count", all);
这里是jsp中获取的值:<%=ActionContext.getContext().get("count")%>
菜鸟一枚,没用过struts2,好多年前的项目改需求,求老鸟帮忙看看
相关问题
- Java/Struts2: How to get action name from current
- NPE in StrutsTestCase after enabling Tiles
- In Tiles,Struts2 java.lang.NoClassDefFoundError: o
- Validating double field in struts 2
- How to use multiple forms / actions in a single vi
相关文章
- Struts2 file upload max size
- Current URL /web/guest/HTML generates exception: n
- UrlRewrite Struts2 setting parameter variables
- How to Set a HashMap from jsp to Action
- Struts 2 jQuery plugin isSubscribe not working
- How to set the values in session?
- Null values are insering in data base using Struts
- Why do we use struts tags and not the old HTML tag
struts2还用这么麻烦吗? action中直接set get就行啊 jsp直接拿 或者 action 拿到request session啊……。
jsp中获取request作用域的数据不是通过ActionContext.getContext().get("xxx")的吧