(在线)这段出错提示是怎么回事阿??
<html>
<body>
<%@page import="java.sql.*" language="java"%>
<%
String bisbn=request.getParameter("b_isbn");
String bname=new String(request.getParameter("b_name").getBytes("ISO8859_1"));
String bauthor=new String(request.getParameter("b_author").getBytes("ISO8859_1"));
String bpublisher=new String(request.getParameter("b_publisher").getBytes("ISO8859_1"));
String bprice=request.getParameter("b_price");
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url="jdbc:odbc:hello";
Connection con=DriverManager.getConnection(url,"shfree","555");
PreparedStatement stm=con.prepareStatement("insert into bookinfo values(?,?,?,?,?,?)");
stm.setString(1,bisbn);
stm.setString(2,bname);
stm.setString(3,bauthor);
stm.setString(4,bpublisher);
stm.setString(5,new String("$"+bprice));
stm.setString(6,"dsh");
try{
stm.executeUpdate();
}catch(Exception e){
out.println("dsddfsfsds");
}
con.close();
%>
<%
}catch(Exception e)
{
out.println("dsds");
out.println(e);
}
%>
<body #f6f6f6>
<pre>
<b><font size="4">添加成功</font></b>
<b><font size="4">请点击<A href="index.html"><em><u><font size="4" color="blue">这里</u></font></em></A>返回</font></b>
</pre>
</body>
<html>
输出 java.lang.ArrayIndexOutOfBoundsException: 5
添加成功
请点击这里返回
这是怎么回事阿??是哪个地方的问题??因该不是数据连接的问题。
这里的这个ArrayIndexOutOfBoundsException指的是哪个Array阿???
在线等待………………