<package name="base-package" abstract="true" namespace="/" extends="struts-default">
<default-action-ref name="index"/>
<global-results>
<result name="toInstall"></result>
<result name="toSysIndex"></result>
<result name="toCorpIndex" type="chain">
<param name="actionName">exec-toLogin</param>
<param name="namespace">/corp</param>
</result>
</global-results>
</package>
<package name="global-package" extends="base-package" namespace="/global">
<action name="index" class="cn.com.web.actions.global.GlobalDispatcherAction">
</action>
</package>
action:
public String execute() throws Exception {
return "toCorpIndex";
}
struts2配置如下代码:
exec-toLogin
/corp
为什么能跳到 login.jsp页面?看不明白
一般不都是/page/ext/login.jsp这么写吗?