SSH 很简单的问题 java.lang.RuntimeException 大侠们给看看
[错误为:
java.lang.RuntimeException: Invalid action class configuration that references an unknown class named [updatePAction]
java.lang.ClassNotFoundException: updatePAction
配置为:
struts.xml
list.jsp
applicationContext.xml
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>
...全文
相关推荐
MyEclipse+SSH错误:java.lang.NoClassDefFoundError orgobjectwebasmCodeVisitor解决
在Java开发环境中,我们经常会遇到`java.lang.NoClassDefFoundError`这个异常,这是一个运行时错误,通常发生在尝试执行一个包含对某个类的引用,但系统无法找到该类的定义时。
JAVA笔试题大全共120道题+SSH框架
【JAVA笔试题大全共120道题+SSH框架】主要涵盖了Java编程语言的基础知识、高级特性以及常用框架。以下是一些重要的知识点:1.
配置struts2常见错误
Console 错误:Dispatcher initialization failed**问题描述**:```java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
某公司的JAVA笔试题
**- **递归算法**: 递归是一种在函数内部调用自身的编程技巧,常用于解决可分解为更小同类问题的问题,例如计算阶乘、遍历树结构等。
java必备知识点大全.pdf
Ajax请求Session超时问题:Ajax请求可能会遇到Session超时的问题,需要特别处理。Java线程池概述:Java线程池可以重用一组线程来执行多个任务,提高程序性能。


