struts2
文章平均质量分 60
执-笔
这个作者很懒,什么都没留下…
展开
-
struts2 ognl表达式
一、#操作符 它的作用有三种1、访问非根对象属性(#session.username)2、用来过滤和投影集合({1,2,3,4,5}.{?#this>2})3、用来构造map(#{"ss":"ss","sss":"sss"})二、%操作符 %用于计算ognl表达式中的值三、$操作符1、在国际化资源中使用og原创 2015-11-04 22:26:53 · 346 阅读 · 0 评论 -
struts2拦截器
一、编写拦截器public class CustomInterceptor extends AbstractInterceptor { @Override public String intercept(ActionInvocation invocation) throws Exception { String method = invocation.get原创 2015-11-04 20:52:58 · 391 阅读 · 0 评论 -
struts2 The Struts dispatcher cannot be found异常解决办法
HTTP Status 500 - The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its原创 2015-11-04 21:33:53 · 660 阅读 · 0 评论 -
struts2国际化支持
一、国际化文件的命名 name_language_country.properties name_language.properties name.properties二、在struts.xml文件中配置国际化支持 name="struts.custom.i18n.resources" value="name原创 2015-11-04 20:05:10 · 301 阅读 · 0 评论 -
struts2表单重复提交
一、在页面的form表单中添加令牌属性taglib prefix="s" uri="/struts-tags" %>page contentType="text/html;charset=UTF-8" language="java" %> s:form action="/form/form.action"> s:textfield name="name">s:tex原创 2015-11-04 23:01:49 · 414 阅读 · 0 评论