Below is a Java Server Page (JSP) that I wrote that can be used as a SQL Responder running in a Java Web Server such as Apache Tomcat. The JSP is expecting several input parameters: sqlquery, maxrows, querytype, etc. via http post protocol. The servlet then does a SQL lookup based off of the input parameter passed to it. After the SQL database returns the data to the JSP. The JSP then returns a tcl list via http response to the calling process, usually a Tcl Interpreter. The technologies used in the servlet are JDBC and Jacl. I would not recommend using this serlvet over the internet because of security reasons. You could update the servlet to use SSL or https. If anyone has ideas on how to do update the servlet to make it more secure using https then feel free to update the code below. One nice thing about JSPs or Java Servlets are that they are multi-threaded by nature. This JSP engine should be able to handle many concurrent requests. Scott Nichols. scott.nichols@attbi.com <%@ page import="java.io.*" %> <%@ page import="java.util.*" %> <%@ page import="java.sql.*" %> <%@ page import="tcl.lang.*" %> <% String sSQLQuery = ""; String sError = ""; String sMessage = ""; Connection con; Statement stmt; int i=0; ResultSet rs; String sbgcolor = "#D3D3D3"; String sFontcolor = "White"; String sTable = ""; TclObject row; TclObject rows=null; Interp interp; interp = new Interp(); if (request.getParameter("sqlquery") != null) { // Read the SQL Query sSQLQuery = request.getParameter("sqlquery"); try { // Load the standard JDBC driver provided by SUN Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); try { // Read the connection string, username and password posted from the HTML form. if ((request.getParameter("connection") != null) && (request.getParameter("username") != null) && (request.getParameter("password") != null)) // Connect to the ODBC datasource. con = DriverManager.getConnection(request.getParameter("connection"),request.getParameter("username"),request.getParameter("password")); else con = DriverManager.getConnection("jdbc:odbc:Northwind","sa",""); // Create a connection statment. stmt = con.createStatement(); String queryType; if (request.getParameter("querytype") != null) queryType = request.getParameter("querytype"); else queryType = "select"; // Do we do a Select SQL Query or an Update, Delete or Insert SQL Query? if ( queryType.compareTo("select") == 0) { // Read how many SQL rows the user wants returned. if (request.getParameter("maxrows") != null) stmt.setMaxRows(Integer.parseInt(request.getParameter("maxrows"))); else stmt.setMaxRows(1000); // Submit the SQL Select Query rs = stmt.executeQuery(sSQLQuery); ResultSetMetaData meta = rs.getMetaData(); // Parse the column headers from the result set (meta-data) and build the header // of the HTML table int iColumns = meta.getColumnCount(); rows = TclList.newInstance(); row = TclList.newInstance(); TclList.append(interp, row,TclString.newInstance("SUCCEEDED")); TclList.append(interp, rows,row); row = TclList.newInstance(); for (int colNumber=1; colNumber<=iColumns; colNumber++) { // sTable = sTable + "