
struts2.0
bird_cat
这个作者很懒,什么都没留下…
展开
-
strut2.0学习笔记
问题一: Form action defaulting to 'action' attribute's literal value 解决方案如下: 页面显示信息: struts.xml配置信息:原创 2012-05-17 13:22:18 · 934 阅读 · 0 评论 -
详细描述用maven构建Struts2项目
例子下载地址 1:get started 2:user guide 3: API 4:HOME 构建后目录结果如下: struts2 和struts1有很大的不同,它的核心特征是所有的实现都是通过interceptors(拦截器),“value stack” (值栈),OGNL(表达式语言),以及包含了很多的注解使框架使用起来更简单。 下面一步一步构建学习S原创 2013-05-04 13:03:19 · 40742 阅读 · 2 评论 -
创建自己struts2拦截器
步骤: 1:创建一个类实现com.opensymphony.xwork2.interceptor.Interceptor接口 2:实现intercept(ActionInvocation invocation) 方法 3:在struts.xml中配置拦截器 4: 链接到相应的action 代码下载 文件目录: struts2自身有很多的拦截器,在struts-原创 2013-05-05 16:13:58 · 2567 阅读 · 0 评论