在线等小问题请帮忙谢谢
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" %>
</html>
<head>
<title>添加评论</title>
</head>
<body>
<%@ include file="include.inc"%>
<%
try
{
Class.forName(CLASSFORNAME);
Connection con=DriverManager.getConnection(SERVANDDB,USER,PWD);
Statement stmt=con.createStatement();
String ip=request.getRemoteAddr();
java.util.Date time=new java.util.Date();
String sqltime=new Timestamp(time.getTime()).toString();
String xwxh=request.getParameter("xwxh");
String plr=request.getParameter("author");
String plnr=request.getParameter("plnr");
stmt.execute("insert into yzcy_newscomment(xwxh,plr,plsj,ip,plnr)values(´"+xwxh+"´,´"+plr+"´,´"+sqltime+"´,´"+ip+"´,´"+plnr+"´)");
stmt.close();
con.close();
out.println("添加成功");
out.print("系统会自动专向评论页面;如果没有成功请点击");
out.print("<a href=news_show.jsp?xwxh=3>返回</a>");
out.print("<meta http-equiv=refresh content=´4;url=news_show.jsp?xwxh=3´>");
}
catch(Exception e)
{
e.printStackTrace();
}
%>
<center>
</body>
</html>
include.inc:
<%@ page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.io.*"%>
<%@ page import="com.microsoft.jdbc.sqlserver.SQLServerDriver"%>
<%@ page import="java.lang.*"%>
<%
String CLASSFORNAME="com.microsoft.jdbc.sqlserver.SQLServerDriver";
String SERVANDDB="jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=wuxin";
String USER="sa";
String PWD="wuxin";
%>
为什么不能执行数据库
还有不能显示out.print();所要输出的东西