JDBC

来源:互联网 发布:java mysql 驱动 编辑:程序博客网 时间:2024/04/30 00:48
 

怎么样让netbeans从glassfish连接上mysql  (JDBC)

(A connection pool contains a group of reusable connections for a particular database. Because creating each new physical connection is time-consuming, the server maintains a pool of available connections to increase performance. When an application requests a connection, it obtains one from the pool. When an application closes a connection, the connection is returned to the pool. Connection pools use a JDBC driver to create physical database connections.)

(A data source (a.k.a. a JDBC resource) provides applications with the means of connecting to a database. Applications get a database connection from a connection pool by looking up a data source using the Java Naming and Directory Interface (JNDI) and then requesting a connection. The connection pool associated with the data source provides the connection for the application.)


UNIT9  The purpose of this tutorial unit is to demonstrate how you can use the object-relational mapping (ORM) capabilities provided by EJB and JPA technologies to gather data from a web request and write to a back-end data

在JSP里面添加跳转按钮:<input type="button" value="注册" onClick="window.location.href='register.jsp'">

<a href="<%=request.getContextPath()%>/跳转.html"><img src="<%=request.getContextPath()%>/可以加按钮图.gif" height="54" vspace="5" width="172"></a>


jsp跳转到servlet:直接输入servlet的名字就好了不用加.java

要从servlet跳转到jsp: out.print("<form action=\"testJsp.jsp\" method=\"get\">");

 

“www” replace
  

javac -cp jdom.jar:abdproj2/*.java -Xlint
java -cp jdom.jar: abdproj2/ABDProj2

原创粉丝点击