随笔分类 -  struts2

摘要:Action类继承了ActionSupport类,而该类实现了Action、Validateable、ValidationAware、TextProvider、LocaleProvider和Seriazbale接口。而其中Validatteable 接口定义了一个validateable()方法,只 阅读全文
posted @ 2017-10-11 23:15 千彧 阅读(161) 评论(0) 推荐(0)
摘要:Struts2框架内建了大量的拦截器,这些拦截器可以再struts-default.xml 中查看。 alias:实现在不同请求中相似参数别名的转换。 autowiring:这是个自动装配Spring,主要用于当Struts 2和Spring整合时,Struts 2可以使用自动装配的方式来访问Spr 阅读全文
posted @ 2017-10-10 18:29 千彧 阅读(176) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 7 8 阅读全文
posted @ 2017-10-04 11:13 千彧 阅读(93) 评论(0) 推荐(0)
摘要:结构图: load.jsp web.xml StrutsDemo1 struts.xml main.jsp 阅读全文
posted @ 2017-09-29 11:31 千彧 阅读(146) 评论(0) 推荐(0)
摘要:在实际应用中我们需要根据用户的需求来更改struts2的默认配置来满足需求,这就涉及到配置文件的加载。 struts实际上属于一种过滤器,要查询过滤器的init方法来了解struts的配置加载。 这一系列代码就是用来加载Struts的配置文件的。 init_DefaultPropertise(); 阅读全文
posted @ 2017-09-29 11:18 千彧 阅读(684) 评论(0) 推荐(0)
摘要:struts搭建: 在web.xml文件配置struts过滤器 (struts本身就是一种过滤器),编写struts基本参数,访问前端控制器 1 <?xml version="1.0" encoding="UTF-8"?> 2 <web-app xmlns:xsi="http://www.w3.or 阅读全文
posted @ 2017-09-29 09:25 千彧 阅读(183) 评论(0) 推荐(0)
摘要:struts 官网 : https://struts.apache.org/ 阅读全文
posted @ 2017-09-27 23:19 千彧 阅读(106) 评论(0) 推荐(0)