The configuration of the entire environment is probably like this process.
1. Download eclipse for Web
2. Download Tomcat
3. Configure the Tomcat server in eclipse
4. the download of GEF is the install software, which seems to be some UIS. After installing it, you can install a quantum interface. Of course, I found that elipseee also has a database interface.
5. Download HSQLDB, a very small stuff, run the service in bin, and then set an extents jars in buildpath, which is the JDBC driver of hsql.
6. Create a JSP file in eclipse and write code in it.
<% @ Page Language = "Java" contenttype = "text/html; charset = ISO-8859-1"
Pageencoding = "ISO-8859-1" %>
<% @ Page import = "org. HSQLDB. JDBC. *, java. SQL. *, java. util. *" %>
<! Doctype HTML public "-// W3C // dtd html 4.01 transitional // en" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = ISO-8859-1">
<Title> insert title here </title>
</Head>
<Body>
Aaa
<%
Try {
Class. forname ("org. HSQLDB. jdbcdriver ");
Connection conn = drivermanager. getconnection ("JDBC: HSQLDB: hsql: // localhost/", "sa ","");
Statement ST = NULL;
Resultset rs = NULL;
St = conn. createstatement ();
Rs = st.exe cutequery ("select * from test ");
While (Rs. Next ()){
Out. Print (Rs. getint ("ID "));
}
}
Catch (exception e ){
E. printstacktrace ();
}
%>
B
</Body>
</Html>