CopyCode The Code is as follows: con. setautocommit (true); // set it to true. Each executeupdate is executed immediately.
SQL = "insert into Table1 (lable1) values ('001 ')";
Rs = stmt.exe cuteupdate (SQL );
SQL = "insert into Table2 (lable2)
For example:
CopyCode The Code is as follows: hibernatetest. Java
Import onlyfun. Caterpillar .*;
Import net. SF. hibernate .*;
Import net. SF. hibernate. cfg .*;
Import java. util .*;
Public class hibernatetest {
Public static void main (string []
DWR. jsp
A
B
C
DWR. xml Public "-// getahead limited // DTD direct Web remoting 2.0 // en"Http://getahead.org/dwr/dwr20.dtd>
Usermanager. JavaPackage com. Struts;Public class usermanager {Public Boolean CCC (string uname ){If
I have just completed such a similar system over the past two days. I hope to discuss with you the JSP implementation technology.
A system like Sina Sohu should be similar, that is, the background dynamically generates HTML pages at the front end,
Every developer who uses servlets now knows that JSP is a Web technology invented by Sun and put a lot of effort into implementation and constructed on top of Servlet technology. JSPCodeThis can accelerate web application development and page
JSP is as follows:
**********************
Int curpage = 1; // current page
Int page_record = 20; // number of records displayed on each page
// Use the following method (SQL query is completed, and the speed is fast)
Curpage = integer.
(2) Apache server
1. Double-click the apache_1_3_12_win32.exe file and use the default configuration for installation. The default installation directory is:C: \ Program Files \ apache group \ apache, I use $ apache_root to replace the
Source: If you have any copyright issues, please contact us
Basic Components
JSP has the following nine basic built-in components (corresponding to the six internal components of ASP ):Request client request, which contains parameters from the
Author: Builder. com
JSP provides many simple and practical tools, including reading data from the database, sending data, and displaying the results in a pie chart. Now let's take a look at this simple and practical method.
What you need
defaultroot
debugjsp
added to compile JSPs with debug info
org. Apache. Jasper. servlet. jspservlet
classdebuginfo
true
3
debugjsp
*. jsp
Copy to the WEB-INF/Web. XML in your application;
3. Copy style. xml and button. xml
1. configuration/sessionfactory/session The configuration instance represents an application. Program The complete set of Java-to-SQL database ing in. configuration is used to build a (immutable) sessionfactory.Sessionfactory is thread-safe and
I. Basic concepts:
1. Tag ):
A tag is an XML element. A tag can simplify and maintain a JSP webpage, and supports multiple language versions for the same JSP file. Because tags are XML elements, their names and attributes are case sensitive.
A web project does not have a web. xml file. That is to say, the Web. xml file is not required by the web project.
So when and when?To answer the above question, you must first understand what the web. xml file is used. The Web. xml file is used
XML (Extensible Markup Language) may look like a W3C standard-there is no real impact now, even if it can be used in the future, it will be a long time later. But in fact, it is now applied. Therefore, do not use XML until it has been added to your
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service