jsp中的com。bwm.login.user错误 是不是要加驱动什么的????

来源:百度知道 编辑:UC知道 时间:2024/06/25 08:03:42
<%@ page contentType="text/html;charset=gb2312" language="java" %>
<%@ page import="java.sql.*,java.io.*"%>
<%@ include file="include.inc"%>
<%@ page import="java.util.Vector"%>
<%@ page import="java.util.Date"%>
<%@ page import="com.bwm.login.user"%>

<%
String username=request.getParameter("username");
String password=request.getParameter("password");
String submit=request.getParameter("submit");
boolean flag=true;

Class.forName(CLASSFORNAME);
Connection con=DriverManager.getConnection(SERVER,USER,PWD);

Statement stmt=con.createStatement();

if(submit.equals("登陆"))
{
String isCorrect="select * from user_info where username='"+username+"'and password='"+password+"'";
R

com.bwm.login.user这个类包没有加载?
user mylist=new user();这不是用user类定义了一个对象么。。。
编辑的时候没有报错????
不应该啊,user的username属性都可以用啊,要么是你的类包有问题,要么就是你加载有问题,好好检查下吧

把你报的错的提示,贴出来看看。。。