![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
struts2
daichangfu
这个作者很懒,什么都没留下…
展开
-
struts2循环标签的使用!
struts2随提供了循环控制标签,,使用起来也比较方便,但在具体的应用中,也有不方便之处,他没有像struts1的标签,提供了begin、end等属性,支持自增变量的循环。遇到这种问题怎么解决??struts2提供了标签,且提供了一个bean类:org.apache.struts2.util.Counter,该类中有first、last等属性,可用使用它获取自增值,如下: ...原创 2010-09-21 13:08:07 · 92 阅读 · 0 评论 -
action参数传递错误
[code="java"] File: OgnlRuntime.java Method: setFieldValue Line: 1643 - ognl/OgnlRuntime.java:1643:-1 at com.opensymphony.xwork2.ognl.OgnlReflectionProvider.setValue(OgnlReflectionProvider.java:1...原创 2010-10-16 11:31:45 · 189 阅读 · 0 评论 -
jsp标签循环数字
使用Struts标签啊。 还有 ${i}原创 2012-10-28 18:19:28 · 332 阅读 · 0 评论 -
struts2文件下载中文名乱码
[code="java"] public String getDownFileName(){ //文件名,用于下载 try { getResponse().setHeader("charset", "ISO8859-1"); return new String(this.fileName.getBytes(), "ISO8859-1"); } catch ...原创 2012-08-09 17:03:39 · 83 阅读 · 0 评论 -
struts2文件下载图片和txt文件会在浏览器打开解决
<result name="downLoad" type="stream"> <param name="contentType">${contentType}</param> <param name="contentLength">${fileSiz原创 2013-02-28 17:48:15 · 185 阅读 · 0 评论