我的通配符开始这样设<action name="*_*_*" /> 可以找到相应的action ,但是那样配置太难看了,我想改成下面那个<action name="*/*_*" /> ,但是这样配的话,相应的action找不到了,望各位帮帮忙....
解决方案 »
- onblur事件中不能用循环吗?
- JBoss:javax.naming.NameNotFoundException: AccountBean not bound
- struts2 报错问题.。。。在线等
- struts2 验证框架 重复弹出错误问题?
- Tomcat下JSP页面中的中文显示不正常
- 如何在JBOSS中配置虚拟目录
- 百分求解~!!十万火急
- 关于http://www.cn-java.com/target/news.php?news_id=1933例子的问题
- 转 请大家讨论一下,现在我们开发J2EE的Application Server还有没有机会,这里有没有这种人才? (愿意给300分)
- xml里面$USER_HOME$代表引用的什么
- 大侠们帮忙看看这个是什么问题关于外键约束的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