struts2
文章平均质量分 55
bolang102020
这个作者很懒,什么都没留下…
展开
-
s:iterator 标签的使用详解及OGNL用法
简单的demo:s:iterator 标签有3个属性:value:被迭代的集合id :指定集合里面的元素的idstatus 迭代元素的索引1:jsp页面定义元素写法 数组或list<s:iterator value="{'1','2','3','4','5'}" id='number'> <s:property value='number'/>A </s...原创 2011-01-20 13:08:21 · 167 阅读 · 0 评论 -
这个取值有点诡异。
<% String path = request.getContextPath();%> 在页面这么加吧,JSP中写${path}按道理来说能拿到值,为什么是空呢struts2控制跳转后,redirect的result types跳过去的页面拿不到这个path 诡异的是我在String path = request.getContextPath();...原创 2010-12-04 02:00:06 · 81 阅读 · 0 评论