![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Struts
CHEN_JP
这个作者很懒,什么都没留下…
展开
-
Struts中FeildError问题
Struts中在前台中通过拿到action中addFieldError("fielderror.test", "wrong!")添加的错误信息是,默认情况下是带了...格式的。这个给自己设定错误信息的表现带来不便,三种解决方法: 1. 在前台jsp页面中加入css控制 .formFieldError ul li{ list-style-type: none }原创 2012-08-19 20:51:38 · 1068 阅读 · 0 评论 -
struts.xml中的default-action-ref问题
当在struts.xml中配置default-action-ref时,如下: /index.jsp 1.当在浏览器中敲http://localhost:8080/apps/index时,这时候访问的是apps应用下的/命名空间下的index这个action,这个action会被com.chen.action.Ab原创 2012-08-21 22:55:19 · 7413 阅读 · 1 评论 -
零碎记录
OGNL表达式中,user.username对应action中user这个model的方法setXXX()、getXXX()。其中XXX必须是username第一个字母大写。 url中......?xxx=xx&xxx=xx当参数传递过程中没有正常的转换会发生No result defined for action and result input错误,要检查参数格式,若自己定义转换器,检查转换原创 2012-08-22 17:16:31 · 722 阅读 · 0 评论