devxlogo

Tip Bank

Passing Primitive Data by Reference

Primitive datatypes in Java are always a passby value. You can pass them by reference, by wrapping the data in to single element array. Here is the code (Tested on

Multiselect Drop-down Box

Question: I need to have a drop-down box (combo probably) which allows multiple selections. The list box does this but there is no room to have the number of list

ADO and Large Tables

Question: I have several MS Access97 database tables that are larger than 120 MB. When I use ADO to open the entire table it seems to try to load the

JDBCTest ClassNotFoundException

Question: I’m trying to test the JDBC-ODBC bridge with JDBCTest tool and itgives me the following error: registerDriver() Failed:java.lang.ClassNotFoundException: sun/jdbc/odbc/JdbcOdbcDriver What’s the problem? Answer: It looks like the jar file

Dumping Tables

Question: Using JDBC, how can I turn a database table into a series of SQL INSERT statements that can recreate the table? Answer: Dumping a database table into a set

ResultSet Positioning

Question: How can I access the next and previous rows in a ResultSet when Iconnect to a database through a JDBC driver? Answer: The JDBC 1.0 API only allows you

GET and POST Requests

Question: How does a servlet handle GET and POST requests? Answer: The HttpServlet abstract class, defined in the javax.servlet.httppackage, contains several methods that simplify interacting with HTTPrequests. Two of the