文章分类 -  struts2

摘要:1.struts.xml包含login.xml 2.默认action 3.Result类型 1).dispatcher :服务器跳转 。若不配置type,则默认为此项。 2).redirect:客户端跳转。 3).chain:用forward的方式访问action 4).redirectAction 阅读全文
posted @ 2016-04-26 21:10 进进 阅读(78) 评论(0) 推荐(0)
摘要:1.校验数据 action中: jsp中:<%@taglib uri="/struts-tags" prefix="s" %> 2.debuge模式 3.取得Map类型request,session,application,真实类型 HttpServletRequest, HttpSession, 阅读全文
posted @ 2016-04-25 10:47 进进 阅读(85) 评论(0) 推荐(0)
摘要:1.struts.devMode设置为true后,修改struts.xml不用重启tomcat环境也能生效 5.通配符匹配 6.action属性 1)第一种方法: 2) 第二种方法: 阅读全文
posted @ 2016-04-21 13:11 进进 阅读(91) 评论(0) 推荐(0)