如果定义了
<action name="GoAction_*" method="{1}"
			class="tutorial.JsonPluginAction">
			<result name="input">MyJsp.jsp</result>
			<result name="list" type="json" />
		</action>

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

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

其实我只要取得.action就够了,怎么才能取得配置的
<constant name="struts.action.extension" value="action"></constant>
评论
cscs31 2008-04-24
是取不到吗?
发表评论

提醒: 该博客已发表在公共论坛,博客所有留言会成为论坛回贴,留言请注意遵守论坛发贴规则

您还没有登录,请登录后发表评论

cscs31
搜索本博客
博客分类
最近加入圈子
最新评论