酒
酒瓶
Unregistered / Unconfirmed
GUEST, unregistred user!
package abcd;
import java.sql.*;
import java.io.*;
import java.util.*;
import com.laoer.bbscs.db.*;
import com.laoer.bbscs.txthtml.*;
public class boardlist {
String SQL = "";
DbTrans DBSQL;
ResultSet rs = null;
do
Text myDoText;
*
*
*
*
public void getBoard( ) {
SQL = "select * from board ";
try {
rs = DBSQL.executeQuery(SQL);
if (rs.next()) {
this.strBID = rs.getString("ID");
this.strBoardName = rs.getString("boardname");
this.strEBoardName = rs.getString("eboardname");
this.strBMaster = rs.getString("bmaster");
this.numAttrib = rs.getInt("attrib");
this.strXu = rs.getString("xu");
}
rs.close();
}
catch (SQLException e){
}
}
*
*
*
*
*
}
请问各位,我怎样才能在main.jsp;里用很简单的几句实现显示列表
我不想用循环或者什么的,能不能调用这个java beans 一句话就能显示
列表呢???
import java.sql.*;
import java.io.*;
import java.util.*;
import com.laoer.bbscs.db.*;
import com.laoer.bbscs.txthtml.*;
public class boardlist {
String SQL = "";
DbTrans DBSQL;
ResultSet rs = null;
do
Text myDoText;
*
*
*
*
public void getBoard( ) {
SQL = "select * from board ";
try {
rs = DBSQL.executeQuery(SQL);
if (rs.next()) {
this.strBID = rs.getString("ID");
this.strBoardName = rs.getString("boardname");
this.strEBoardName = rs.getString("eboardname");
this.strBMaster = rs.getString("bmaster");
this.numAttrib = rs.getInt("attrib");
this.strXu = rs.getString("xu");
}
rs.close();
}
catch (SQLException e){
}
}
*
*
*
*
*
}
请问各位,我怎样才能在main.jsp;里用很简单的几句实现显示列表
我不想用循环或者什么的,能不能调用这个java beans 一句话就能显示
列表呢???