文章分类 - struts2
摘要:1.struts.xml包含login.xml 2.默认action 3.Result类型 1).dispatcher :服务器跳转 。若不配置type,则默认为此项。 2).redirect:客户端跳转。 3).chain:用forward的方式访问action 4).redirectAction
阅读全文
摘要:1.校验数据 action中: jsp中:<%@taglib uri="/struts-tags" prefix="s" %> 2.debuge模式 3.取得Map类型request,session,application,真实类型 HttpServletRequest, HttpSession,
阅读全文
摘要:1.struts.devMode设置为true后,修改struts.xml不用重启tomcat环境也能生效 5.通配符匹配 6.action属性 1)第一种方法: 2) 第二种方法:
阅读全文
浙公网安备 33010602011771号