No result defined for action com.frank.action.RegistAction and result success

为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>



原文地址:https://www.cnblogs.com/frankM/p/4399416.html