zyy951130
苏轼的红烧肉
2017-07-03 09:19

ssh框架中遇到class not found的问题

10
  • ssh

可加QQ767161974直接操作,求解决
实现两个功能,插入可以完成,但是查看全部不能完成,为什么
Caused by: Unable to load configuration. - action - file:/E:/studyPro/tomcat/apache-tomcat-7.0.79/webapps/struts0821/WEB-INF/classes/struts.xml:21:50

Caused by: Action class [com.oracle.struts] not found - action - file:/E:/studyPro/tomcat/apache-tomcat-7.0.79/webapps/struts0821/WEB-INF/classes/struts.xml:21:50【我没有这个包啊,没定义过】

图片说明

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">







/success.jsp

book_getAll


<!-- Add packages here -->

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">




序号
书名
作者
操作
    <c:forEach items="${list}" var="b" varStatus="state">
        <tr>
        <td>${state.count}</td>
        <td>${b.bookname }</td>
       <td>${b.author}</td>
       <td>操作</td>
        </tr>
    </c:forEach>
     </table>

 <a href="book_insert.jsp">插入图书</a>


  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

6条回答