Java learning log 04

xiaoxiao2021-03-06  46

November 9, 2004

-----------------------------------------

1. Learning goals

1.1 Javabean (Reference Tutorial:

http://it.rising.com.cn/newtech/studycenter.htm)

Three Standard Tags: // param and value cannot be used at the same time

Connect to the database:

1.1.1 Building a JDBC connection pool first

1.1.2 //db.java

Class.Forname ("Sun.jdbc.odbc.jdbcodbcdriver");

CONN = DriverManager.getConnection ("JDBC: ODBC: JBDB", "" "");

STMT = conn.createstatement ();

1.1.3 //db.jsp

<

% @ Page Import = "Java.sql. *"%>

<

% @ Page Import = "JBDB. *"%>

ResultSet RS = DB.Query ("SELECT * from user");

1.2 Struts (Struts Terminal:

http://struts.apache.org)

Look at Struts Getting Started, I'm looking at the dizziness. . It seems to download a struts installation (

http://struts.apache.org), Jakarta-struts-1.2.4.zip

Continue research tomorrow Struts

1.3 Message this (MVC mode development, JSP, JavaBean, Struts, Access Database)

----------------------------------------- November 10, 2004

-----------------------------------------

1. Struts study (

http://struts.apache.org)

1.1 installation process

1.1.1 Download Struts Compressed Pack (jakarta-struts-1.2.4.zip)

1.1.2 Copy Struts.jar to the lib directory under the JDK directory

1.1.3 Configuration in JCREATOR -> Options -> JDK PROFILES Add Struts to the current directory

-----------------------------------------

November 12, 2004

-----------------------------------------

1. Continue to study struts

Resources:

http://tech.ccidnet.com/pub/Article/c1060_a105035_p1.html

http://www.matrix.org.cn/subject/struts/website_forum.htm

----------------------------------------- November 13, 2004

-----------------------------------------

First, continue to study struts

Struts principle and practice (

http://tech.ccidnet.com/pub/Article/c1060_a158827_p1.html)

Knowledge points: java.sql.driverManager load driver, when java.sql.driverManager's getConnection () method is called, DriverManager is attempted to be a database (or formalized data source) in the registered driver. Look for a suitable driver and transfer the URL of the database to the acceptsURL () method of the driver, the driver confirms that you have the ability to connect to the URL. The generated connection Connection represents a session with a particular database. Statement (including PreparedStatement and CallableState "objects act as a container for executing SQL statements on a given connection. After performing the character sentence, generate the ResultSet result set object, and the data in the table can be accessed through a series of getter of the result set.

CCID JAVA topic (

http://tech.ccidnet.com/pub/column/c1078.html)

Matrix - Java Topic - Struts

http://www.matrix.org.cn/subject/struts/website_forum.htm)

-----------------------------------------

November 15, 2004

---------------------------------------- 1, continue to study struts

Discover a lot of Struts on Struts on Said.com, the head of the Struts, decided to study the Struts's own example, if successful, start writing a message

-----------------------------------------

转载请注明原文地址:https://www.9cbs.com/read-91222.html

New Post(0)