• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






奋斗的孩子

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

随笔分类 -  struts2

 
struts2 优缺点
摘要: 阅读全文
posted @ 2018-05-26 16:40 敬畏之心+持之以恒 阅读(247) 评论(0) 推荐(0)
struts2 防止表单重复提交--令牌机制
摘要:jsp: action: 配置文件: 阅读全文
posted @ 2018-01-21 15:40 敬畏之心+持之以恒 阅读(115) 评论(0) 推荐(0)
STRUTS2文件下载
摘要:jsp: action: 配置文件: 项目目录结构: 阅读全文
posted @ 2018-01-21 14:41 敬畏之心+持之以恒 阅读(102) 评论(0) 推荐(0)
struts2上传文件
摘要:上传单个文件 jsp: action: 配置文件: 上传多个文件: jsp: action: 配置文件: 阅读全文
posted @ 2018-01-21 11:16 敬畏之心+持之以恒 阅读(119) 评论(0) 推荐(0)
struts2配置文件(struts.xml)中相关属性的设置
摘要:<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache 阅读全文
posted @ 2016-10-06 20:01 敬畏之心+持之以恒 阅读(137) 评论(0) 推荐(0)
struts2 资源国际化
摘要:web.xml: <?xml version="1.0" encoding="UTF-8"?><web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"xmlns:xsi="http://www.w3.or 阅读全文
posted @ 2016-06-06 00:31 敬畏之心+持之以恒 阅读(170) 评论(0) 推荐(0)
struts2 参数注入 方法拦截器
摘要:web.xml: <?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee" 阅读全文
posted @ 2016-06-02 00:25 敬畏之心+持之以恒 阅读(782) 评论(0) 推荐(0)
struts2 模拟令牌机制防止表单重复提交
摘要:web.xml: <?xml version="1.0" encoding="UTF-8"?><web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLS 阅读全文
posted @ 2016-05-29 22:42 敬畏之心+持之以恒 阅读(244) 评论(0) 推荐(0)
struts2 自带的 token防止表单重复提交拦截器
摘要:在struts2中,我们可以利用struts2自带的token拦截器轻松实现防止表单重复提交功能! 1. 在相应的action配置中增加: <interceptor-ref name="token"></interceptor-ref> <result name="invalid.token">/e 阅读全文
posted @ 2016-05-29 21:20 敬畏之心+持之以恒 阅读(1314) 评论(0) 推荐(0)
struts2 标签
摘要:web.xml: <?xml version="1.0" encoding="UTF-8"?><web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"xmlns:xsi="http://www.w3.or 阅读全文
posted @ 2016-05-22 23:43 敬畏之心+持之以恒 阅读(152) 评论(0) 推荐(0)
struts2 上传文件
摘要:web.xml: <?xml version="1.0" encoding="UTF-8"?><web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"xmlns:xsi="http://www.w3.or 阅读全文
posted @ 2016-05-20 00:46 敬畏之心+持之以恒 阅读(194) 评论(0) 推荐(0)
关于struts2输出excel表
摘要:web.xml: <web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaL 阅读全文
posted @ 2016-05-09 07:58 敬畏之心+持之以恒 阅读(322) 评论(0) 推荐(0)
关于下载
摘要:在struts中关于下载实例如下: public class FirstAjaxAction { public void ajaxTest() throws IOException{ // ServletActionContext.getRequest(); // ServletActionCont 阅读全文
posted @ 2016-04-20 23:24 敬畏之心+持之以恒 阅读(194) 评论(0) 推荐(0)
关于struts2中ActionContext类的作用
摘要:关于struts2中ActionContext类的作用有三个: 1.获取三大作用域对象及页面参数 2.是struts标签的上下文对象 3.ThreadLocal内装的就是ActionContext 怎么使用ActionContext类:获取作用域对象时使用 标签默认使用 线程安全底层默认使用 具体案 阅读全文
posted @ 2016-04-18 21:52 敬畏之心+持之以恒 阅读(922) 评论(0) 推荐(0)
OGNL表达式语言
摘要:OGNL是一个表达式语言,它用来获取和设置Java对象属性的,而EL表达式只能获取不能设置属性 OGNL是struts标签的核心 详细资料参考:http://developer.51cto.com/art/201203/322509.htm 阅读全文
posted @ 2016-04-18 08:10 敬畏之心+持之以恒 阅读(160) 评论(0) 推荐(0)
关于struts.xml配置文件的说明
摘要:<struts> <!-- action: 对应controller 中的类的 name: 匹配url要访问的类 class:包名+类名 通过反射产生对象 method:指定默认访问的方法 默认 method="execute" result:匹配 ation类方法的返回值 跳转功能 默认请求转发 阅读全文
posted @ 2016-04-17 21:21 敬畏之心+持之以恒 阅读(214) 评论(0) 推荐(0)
实现Action的三种方式
摘要:实现Action的三种方式: 1.普通类 一般采用此种方法 2.实现Action接口 3.继承ActionSupport类 阅读全文
posted @ 2016-04-17 19:10 敬畏之心+持之以恒 阅读(458) 评论(0) 推荐(0)
struts2的运行流程
摘要:流程: 1:url 提交到tomcat http://localhost/s2/firstAction 2:tomcat 根据工程名 去 webapps 文件夹下找到对应工程 3:找web.xml StrutsPrepareAndExecuteFilter 被执行,内部调用 struts.xml 4 阅读全文
posted @ 2016-04-16 07:33 敬畏之心+持之以恒 阅读(130) 评论(0) 推荐(0)