![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
struts2
来一盘地三鲜
这个作者很懒,什么都没留下…
展开
-
struts2遇到的两个问题
异常: strtus2中表单提交时报Could not create and/or set value back on to object 最终解决办法:对应于表单的bean 需要空的构造函数。 struts2.x 严重: Could not create and/or set value back on to object: 原因:因为在表单提交的时候,ac...原创 2015-01-20 12:04:34 · 97 阅读 · 0 评论 -
Struts2 中OGNL表达式语言访问值的方法
由于ValueStack(值栈)是Struts 2中OGNL的根对象,如果用户需要访问值栈中的对象,则可以直接通过下面的代码访问ValueStack(值栈)中的属性: ${foo} //获得值栈中的foo属性 如果访问其他Context中的对象,由于不是根对象,在访问时,需要加#前缀。 application对象:用于访问ServletContext,例如#applicatio...原创 2014-10-22 10:30:35 · 133 阅读 · 0 评论