No result defined for action comp.frank.actions.RegistAct and reult success
944 ワード
actionに名前空間を追加すればいいです。
<?xml version="1.0" encoding="GBK"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<constant name="struts.i18n.encoding" value="GBK"/>
<package name="lee" extends="struts-default" <span style="color:#FF0000;">namespace="/"</span>>
<!-- Action -->
<action name="regist" class="com.frank.action.RegistAction">
<!-- 、 , input -->
<result name="input">/index.jsp</result>
<result>/WEB-INF/show.jsp</result>
</action>
<action name="*">
<result>/WEB-INF/content/{1}.jsp</result>
</action>
</package>
</struts>