[请教]关于500 Action[/resourceType] does not contain method named restype_admin错误(在线等)

seven77526 2008-03-21 12:12:34
最近新上手structs
遇到一段程序出现500 Action[/resourceType] does not contain method named restype_admin错误 请大家指点
配置文件 如下,如果还需要看什么内容请告诉我,我发上来,看看哪里出的问题
==============================struts-config-resource.xml==========================
<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">

<struts-config>

<!-- ========== Form Bean Definitions ========== -->
<form-beans>
<form-bean name="ResourceTypeForm" type="com.shareinfo.resource.forms.ResourceTypeForm">
</form-bean>
<form-bean name="ResourceForm" type="com.shareinfo.resource.forms.ResourceForm">
</form-bean>
</form-beans>

<!-- ========== Global Forward Definitions ========== -->
<global-forwards>
<!-- <forward name="error" path="/error.jsp"/> -->
<forward name="error" path="base.timeout"/>
</global-forwards>

<!-- ========== Action Mapping Definitions ========== -->
<action-mappings>

<action path="/resourceType"
name="ResourceTypeForm"
parameter="method"
type="com.shareinfo.resource.action.ResourceTypeAction"
validate="false"
scope="request">
<forward name="editpath" path="/editrestype.jsp"/>
<forward name="listpage" path="/resourceType.do?method=restypelist"/>
<forward name="success" path="sysconfig.restype_admin"/>
</action>

<action path="/resource"
name="ResourceForm"
parameter="method"
type="com.shareinfo.resource.action.ResourceAction"
validate="false"
scope="request">
<forward name="edit" path="/resourceEdit.jsp"/>
<forward name="updateinfo" path="/updateinfo.jsp"/>
<forward name="list" path="/resourceRight.jsp"/>
<forward name="success" path="sysconfig.restype_admin"/>
<forward name="transfer" path="/batchTransfer.jsp"/>
<forward name="relation" path="/rcRight.jsp"/>
<forward name="listpic" path="/showpic.jsp"/>
</action>

</action-mappings>

<!-- ========== Associated Messages Ressource settings ========== -->
<message-resources parameter="resources_resource" null="false"/>

<!-- ========== Setup the Tiles plugin in ======================= -->
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
<set-property property="definitions-config" value="/WEB-INF/titles-defs-resource.xml" />
<set-property property="definitions-parser-validate" value="true" />
<set-property property="moduleAware" value="true" />
</plug-in>
</struts-config>
=========================================================================================================
------------------------------------titles-defs-resource.xml-------------------------------------------
<?xml version="1.0" encoding="GB2312" ?>

<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">

<tiles-definitions>

<!--区域描述管理界面-->
<definition name="sysconfig.restype_admin" path="/common/layout.jsp">
<put name="title" value="资源类型管理" />
<put name="javascript_header" value="/resource/restype_javascript.jsp" />
<put name="functions" value="/resource/restype_functions.jsp" />
<put name="main" value="/resource/restypelist.jsp" />
</definition>

<!--登陆信息无效-->
<definition name="base.timeout" path="/common/layout.jsp">
<put name="title" value="请重新登陆" />
<put name="main" value="/usermanger/error.jsp" />
</definition>

</tiles-definitions>
...全文
330 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

67,538

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧