主题:高手请进来!
javax.servlet.jsp.JspWriter out;
这句话是什么意思,请说说!!!
还有
public BookDetail getDetail(long bookid,javax.servlet.jsp.JspWriter out){
BookDetail bookdtl=new BookDetail();
try{
ResultSet rs=stmt.executeQuery("select *from book_detail"+"where bookid='"+bookid+"'");
while(rs.next()){
bookdtl.id=rs.getLong("id");
bookdtl.author=rs.getString("author");
bookdtl.introduce=rs.getString("introduce");
bookdtl.publisher=rs.getString("publisher");
bookdtl.pagenum=rs.getInt("pagenum");
bookdtl.edition=rs.getString("edition");
}
rs.close();
}catch(Exception e){
System.err.println(e);
}
return bookdtl;
}
我在进行编译时,老出现错误:packae javax.servlet.jsp does not exist
我想问一下:在写javax.servlet.jsp.JspWriter out;这句话时是不是要加入其他的包,如果是的,应该加哪些包呢?
这句话是什么意思,请说说!!!
还有
public BookDetail getDetail(long bookid,javax.servlet.jsp.JspWriter out){
BookDetail bookdtl=new BookDetail();
try{
ResultSet rs=stmt.executeQuery("select *from book_detail"+"where bookid='"+bookid+"'");
while(rs.next()){
bookdtl.id=rs.getLong("id");
bookdtl.author=rs.getString("author");
bookdtl.introduce=rs.getString("introduce");
bookdtl.publisher=rs.getString("publisher");
bookdtl.pagenum=rs.getInt("pagenum");
bookdtl.edition=rs.getString("edition");
}
rs.close();
}catch(Exception e){
System.err.println(e);
}
return bookdtl;
}
我在进行编译时,老出现错误:packae javax.servlet.jsp does not exist
我想问一下:在写javax.servlet.jsp.JspWriter out;这句话时是不是要加入其他的包,如果是的,应该加哪些包呢?