我的通配符开始这样设<action name="*_*_*" /> 可以找到相应的action ,但是那样配置太难看了,我想改成下面那个<action name="*/*_*" /> ,但是这样配的话,相应的action找不到了,望各位帮帮忙....
解决方案 »
- Java 学习步骤-代码花园学习法
- 急急急!!!!
- apache 2.2.4安装成功 但是启动不了??
- 请问JAVA去除水印的方法,原理!
- 在apache2+tomcat6中apache roller401中存在中文的编码问题?
- oracle 一条简单的 SQL语句 select into 的问题
- spring jdbctemplate与hibernate共用一个DataSource?
- Hibernate 对数据库操作(菜鸟问题)
- java 编写的 socket 出现的问题
- spring mvc提交表单时405。第一次接触spring mvc 完全搞不懂,处处碰壁。
- 大侠们帮忙看看这个是什么问题关于外键约束的Cannot add or update a child row: a foreign key constraint
- Spring发送消息给JBoss的消息驱动Bean有问题,请指教。
\ 转义字符要么就像4楼讲的将*/写在namespace中,用命名空间来分
那样不行,因为通配符要对应{1} {2} {3} 如果写在namespace中就对应不起来了
<action name="****_*_*" />因为双星可匹配包含'/'Wildcard patterns can contain one or more of the following special tokens:
* Matches zero or more characters excluding the slash ('/') character.
** Matches zero or more characters including the slash ('/') character.
\character The backslash character is used as an escape sequence. Thus'\*'matches the character asterisk ('*'), and'\\'matches the character backslash ('\').
实用好是好,不过像这种路径在地址栏上很难看。如:http://localhost:8080/index_index_method