Help coderanch get a
new server
by contributing to the fundraiser

qu shihong

Greenhorn
+ Follow
since Feb 27, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by qu shihong

Thanks.
20 years ago
JSP

sorry ,can you tell me the book's name?
20 years ago
JSP
you should learn regular expression.
who can recommend me some books about JSTL? Thanks.
20 years ago
JSP
In GroupableTableHeaderUI.java:
--------------------------------
private int getHeaderHeight() {
int height = 0;
TableColumnModel columnModel = header.getColumnModel();
for(int column = 0; column < columnModel.getColumnCount(); column++) {
TableColumn aColumn = columnModel.getColumn(column);
TableCellRenderer renderer = aColumn.getHeaderRenderer();
--------------------------------
renderer is null.
21 years ago
Hi Friends ,
how can I set the table header like this:
-------------------
        name
-------------------
firstName|lastName
-------------------
Thanks.
[ March 02, 2003: Message edited by: qu shihong ]
[ March 02, 2003: Message edited by: qu shihong ]
21 years ago
package gctest;
import oracle.jdbc.driver.OracleDriver;
import java.sql.*;
import java.util.Date;
public class Test1 {
public static void main(String[] args) {
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con = DriverManager.getConnection("jdbc racle:thin:@127.0.0.1:1521:ora", "quxuekuan", "password");
PreparedStatement pstmt = con.prepareStatement("select * from student");
pstmt.executeQuery();
con.close();
}
catch(Exception e){
e.printStackTrace();
}
}
}
---------------------------------------------
java.sql.SQLException: ORA-00600: 内部错误代码,参数: [ttcgcshnd-1], [0], [], [], [], [], [], []

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:542)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1311)
at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java:797)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:1608)
at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java:1758)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1805)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:322)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:280)
at gctest.Test1.main(Test1.java:13)
-----------------------------------------
line 13 :pstmt.executeQuery();
[ Edited by Dave to remove real-looking IP and user/password ]
[ February 28, 2003: Message edited by: David O'Meara ]
This is realy a hard nut to crack .
In Application Server,if you put all the records into session once,it is a resource hog without fail.But if you do not,you have to connect and disconnect frequently,because the connectionPoll's connection number is finite.So I do it in this way : put all the primary key into session and select the record from database by primary key when require.But I know,this is not the best way yet.
[ February 27, 2003: Message edited by: qu shihong ]
21 years ago