Unable to load class for JSP怎么解决啊 30
我用MyEclipse做的一个注册页面,调试的时候总是出现这个页面,很长,我看了看WEB-INF下边也有我需要的类啊,怎么就不行了呢,我我的源码如下:<%@pagelan...
我用MyEclipse做的一个注册页面,调试的时候总是出现这个页面,很长,我看了看WEB-INF下边也有我需要的类啊,怎么就不行了呢,我我的源码如下:
<%@ page language="java" import="java.sql.*,java.util.*,com.bjsxt.qilusoft.*" pageEncoding=gbk %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>qilusoft</title>
<jsp:useBean id="DB" class="com.bjsxt.qilusoft.DB" scope="page" />
<script type="text/javascript" src="dropdowntabfiles/dropdowntabs.js">
</script>
<%
String username = request.getParameter("username");
String password = request.getParameter("password");
String school = request.getParameter("school");
Connection conn = DB.getconn();
String sql="insert into userinfo(userName,userPassword,userschool)values(`"+username+"`,`"+password+"`,`"+school+"`)";
PreparedStatement pstmt =DB.prepareStmt(conn,sql);
pstmt.executeUpdate();
DB.close(conn);
%>
<!-- CSS for Drop Down Tabs Menu #3 -->
<link rel="stylesheet" type="text/css" href="dropdowntabfiles/slidingdoors.css" />
<link rel="stylesheet" type="text/css" href="img/style.css" />
<style type="text/css">
<!--
.STYLE1 {color: #CCCCCC}
.STYLE3 {font-size: 16px}
.STYLE4 {color: #000000}
.STYLE5 {color: #FF0000}
-->
</style>
</head>
然后下边就是一个form action=“regsoft.jsp”;
在目录D:\Tomcat\webapps\qilusoft\WebRoot\WEB-INF\classes\com\bjsxt\qilusoft下边也有类DB,怎么就不行了呢??总是提示说找不到类啊 展开
<%@ page language="java" import="java.sql.*,java.util.*,com.bjsxt.qilusoft.*" pageEncoding=gbk %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>qilusoft</title>
<jsp:useBean id="DB" class="com.bjsxt.qilusoft.DB" scope="page" />
<script type="text/javascript" src="dropdowntabfiles/dropdowntabs.js">
</script>
<%
String username = request.getParameter("username");
String password = request.getParameter("password");
String school = request.getParameter("school");
Connection conn = DB.getconn();
String sql="insert into userinfo(userName,userPassword,userschool)values(`"+username+"`,`"+password+"`,`"+school+"`)";
PreparedStatement pstmt =DB.prepareStmt(conn,sql);
pstmt.executeUpdate();
DB.close(conn);
%>
<!-- CSS for Drop Down Tabs Menu #3 -->
<link rel="stylesheet" type="text/css" href="dropdowntabfiles/slidingdoors.css" />
<link rel="stylesheet" type="text/css" href="img/style.css" />
<style type="text/css">
<!--
.STYLE1 {color: #CCCCCC}
.STYLE3 {font-size: 16px}
.STYLE4 {color: #000000}
.STYLE5 {color: #FF0000}
-->
</style>
</head>
然后下边就是一个form action=“regsoft.jsp”;
在目录D:\Tomcat\webapps\qilusoft\WebRoot\WEB-INF\classes\com\bjsxt\qilusoft下边也有类DB,怎么就不行了呢??总是提示说找不到类啊 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询