首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

Struts2怎么将Action翻译成Url [已解决]

2012-11-15 
Struts2如何将Action翻译成Url [已解决]如果定义了action nameGoAction_* method{1}typejson /

Struts2如何将Action翻译成Url [已解决]
如果定义了

<action name="GoAction_*" method="{1}"type="json" /></action>

怎么能将GoAction_list在代码中翻译成/Struts2Json/GoAction_list.action

在页面上是可以使用<s:url>标签的,这个标签中使用了valueStack。

其实我只要取得.action就够了,怎么才能取得配置的
<constant name="struts.action.extension" value="action"></constant>


1 楼 cscs31 2008-04-24   是取不到吗? 2 楼 cscs31 2008-05-12   答案公布:
http://hi.baidu.com/chinastruts/blog/item/e91624d32c4d44daa8ec9a53.html

热点排行