Struts2的访问路径为什么可以用.action或不写,以及Struts2访问路径的搜索方式
来源:互联网 发布:死神辣条淘宝 编辑:程序博客网 时间:2024/05/16 06:04
1.问:为何href里请求路径的格式可以写action也可不写?
<a href="User_save.action">User-Save</a><a href="User_delete">User-Delete</a>
答:原因是:struts2-core-2.2.1.jar下的org.apache.struts2包下的default.properties
配置了struts.action.extension=action,, 即:既可以.action结尾,也可以不写
2.问:为何访问http://localhost:9090/struts2_day1/a/b/c/helloAction也能正确访问页面?
答:struts2在搜索名称空间的时候
(1)/a/b/c/下有无helloAction 无
(2)/a/b/下有无helloAction 无
(3)/a/下有无helloAction 无
(4)/下有无helloAction 有
- Struts2的访问路径为什么可以用.action或不写,以及Struts2访问路径的搜索方式
- Struts2 Action的访问路径
- Struts2 Action的访问路径
- Struts2框架修改访问路径后缀的三种方式
- Struts2的访问路径四:使用动态路径访问(不推荐使用)
- Struts2的访问路径一:固定访问路径
- Struts2的Action访问ServletAPI的方式
- Struts2中action访问路径配置
- Struts2学习 路径访问
- struts2 ajax访问Action linux和windows下的路径问题
- struts2中如何根据请求路径定位到详细的访问action
- 【3】Struts2的Action访问
- Struts2 第二篇 Action名称的搜索路径
- Struts2的Action访问Servlet API的方式
- Struts2的Action访问Servlet API的方式
- Struts2的Action中方法的几种访问方式
- STRUTS2 ACTION 访问WEB元素的四种方式
- struts2中,action访问servlet api的两种方式
- 使用Apache Lucene索引集群做负载均衡无法获得正确的HTTP端口
- hdu 1248 寒冰王座
- 《代码整洁之道》读后感
- android中CallBack的理解
- 易语言多帐号发送邮件流程控制讲解
- Struts2的访问路径为什么可以用.action或不写,以及Struts2访问路径的搜索方式
- hdu 2191 悼念512汶川大地震遇难同胞——珍惜现在,感恩生活
- Google Chrome中的高性能网络 (三)
- 马士兵_JAVA自学之路(为那些目标模糊的码农们)
- Schema
- Android ListView 重要的属性
- 3.11 程序改错
- Quartz学习
- 低学历的程序员注意了(Relief原创)