急求JSP 问题解决方法,请各位大侠帮帮忙!

来源:百度知道 编辑:UC知道 时间:2024/07/07 17:48:49
程序代码为:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html; charset=GBK" language="java" import="java.sql.*" import ="java.sql.DriverManager" errorPage="" %>
<link href="style1.css" rel="stylesheet" type="text/css"/>
<%@ include file="conn.jsp"%>
<%@ include file="fenlei.jsp"%>
<%! int i=1; %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>无标题文档</title>
</head>
<body>
<table align=center cellPadding=1 width=100% border=1>
<tr class="header"><td align=center colspa

如果column这个字段是table中没有的
那就会抛出Column not found

是你写SQL语句写错了,数据库表中没有你写的列

看错误提示,应该是字段没找到,你的SQL语句是不是写错了。
给两张表起两个别名试试

字段名写的不对或者是不存在

你没有用Hibernate,可以把数据表里面的字段名起得好点,尽量不要用特殊字符