Author: axeonThe first thing you need to do is to install it correctly. This includes the following steps:Install Java and JDBC on your computerJava database connection (JDBC) is a standard SQL (Structured Query Language, Structured Query Language)
When we connect to the database using JDBC, we use executeQuery (String SQL) to obtain a result set. When the database structure changes or other database table result sets are obtained, we need to re-traverse the ResultSet result set based on
The static interface design is login.htm. The Code is as follows:
system logon system Logon User name password & nbsp; code & nbsp; Submit the information entered by the login user to login. jsp (preferred for SUN Enterprise
Jsp (the preferred choice for SUN Enterprise Applications) uses jsp (the preferred choice for SUN Enterprise Applications) forward Action to redirect pages. Syntax:
% >}"/> Or
% >}">
Value = "{parameterValue | }"/> +
Jsp (the first choice for SUN enterprise-level applications) We have been learning it for a long time. We have summarized a little basic knowledge in the process and used it to share it with beginners until we finally made a small project, the pet
Part 1 installation in the JAVA environment1. The latest J2SDK version is 1.4.2 _ 01,: http://java.sun.com/j2se/1.4.2/download.htmlDownload NetBeans IDE v 3.5.1 with J2SE v 1.4.2 COBUNDLEUse NetBeans IDE v 3.5.1 that includes J2SE v 1.4.22. Install!
The following is an example of the JSP Chinese garbled code solution:! String getString (String param ){String tmp;Try {Byte [] strBytes = param. getBytes ("ISO8859-1 ");Tmp = new String (strBytes, "GBK ");Return tmp;} Catch (Exception e ){Return
RequestDispatcher
Forward
1. If the Forward URL contains parameters with the same name as the existing parameters in the request object, the getParameter method returns the parameters in the Forward URL.2. Before Forward, the container should read
// Note: The Chinese file name is not recommended, for example, "target page. jsp (preferred for SUN Enterprise Applications )".// Jump with session, without requestResponst.SendRedirect("Target page. jsp (preferred for SUN Enterprise Applications )"
Full-text search in jsp (preferred for SUN Enterprise applications)
Full-text search has always beenWebPeople are most concerned about how to find the information they want in the vast amount of information. The most famousGOOGLEIs a very
// ShowTimesServlet. java/* example of the number of visits implemented by Servlet! */Import java. io .*;Import java.util.zip .*;Import javax. servlet .*;Import javax. servlet. http .*;/*The number of accesses implemented by this class. Show the
In this article, I will explain to you how a jsp (preferred for SUN Enterprise Applications) page exception (Exceptions) throws (Throw) and captures these Exceptions, in this way, you can obtain more favorable information in the jsp (preferred for
Although our demo was successful, you also learned how to define the exception handling page (for example, your ExceptionHandler. jsp (the preferred choice for SUN Enterprise Applications) is on the general jsp (the preferred choice for SUN
I. Installation Jsp (preferred for SUN Enterprise Applications) SmartUpload is developed by www. jsp (preferred for SUN Enterprise Applications) a free-of-charge full-featured file upload/download component developed on the smart.com website,
String MySQL (the best combination with PHP) Driver = "org. gjt. mm. MySQL (the best combination with PHP). Driver ";String url = "jdbc: MySQL (the best combination with PHP): // localhost/hq"; // database connectionConnection conn;Class. forName
Assumerver Pages (jsp (preferred for SUN Enterprise Applications) syntax table
Element
Description
Jsp (preferred for SUN Enterprise Applications) syntax
HTML
In jsp (preferred for SUN Enterprise applications)Action instructionIncluding:Include,Forward,UseBean,GetProperty,SetProperty,Plugin.
I,Include command
tagContains a static or dynamic file.
Syntax:Or
Note:1. page = "path" is a relative path or a
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