SSH 很简单的问题 java.lang.RuntimeException 大侠们给看看

loveme_123 loveme_123 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
[错误为:
java.lang.RuntimeException: Invalid action class configuration that references an unknown class named [updatePAction]
java.lang.ClassNotFoundException: updatePAction
配置为:
struts.xml
<action name="updatePStudent" class="updatePAction">
<result >updateStudentAction.action</result>
</action>
<action name="updateStudentAction" class="updateStudentAction">
<result type="redirect">/listStudent.action</result>
<result name="input">/update.jsp</result>
</action>


list.jsp
  <s:iterator value="#request.list" id="us" >
<tr>
<td><s:property value="#us.id"/></td>
<td><s:property value="#us.name"/></td>
<td><s:property value="#us.password"/></td>
<td><s:property value="#us.age"/></td>
<td><s:a href="deleteStudent.action?student.id=%{#us.id}" onclick="return dell();" >delete</s:a></td>
<td><s:a href="updatePStudent.action?student.id=%{#us.id}">update</s:a></td>
</tr>
</s:iterator>

applicationContext.xml
<bean id="updatePAction" class="action.updatePStudentAction" scope="prototype">
<property name="studentService" ref="studentService"/>
</bean>
<bean id="updateStudentAction" class="action.updateStudentAction" scope="prototype">
<property name="studentService" ref="studentService"/>
</bean>
...全文

相关推荐

评论 10
收藏 已收藏
分享
返回顶部
loveme_123
Java EE 67,535 成员 225,843 内容