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)
In recent years, the proportion of Linux in the server market has increased. In addition to the free and secure nature of Linux, the Linux application services have become increasingly abundant. Most common services have good solutions on Linux. For
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 following is an example code for using cookies in jsp.
Http://www.w3.org/TR/html4/loose.dtd> JSP Page // String CookiesName = "username ";// Cookie cookie_username = new Cookie ("username", CookiesName );// Response. addCookie (cookie_username
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
It took me a morning to study the custom tags. A custom page tag is created. The code is not carefully optimized. Post it first ,:)
1. Implementation class NumenTag. java of labels
Import java. util. ArrayList;Import java. util. HashMap;Import java.
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 )"
I. origin and status quo:
AboutTemplateAndJsp (preferred for SUN Enterprise applications)The originWebIn the ancient days of development, people usedCGITo developWebApplication, inCGIWrite in the programHTMLLabel.
After that, the world began to
9.1 Cookie OverviewCookies are small plain text information sent by the server to the browser. When a user accesses the same Web server, the browser will send them to the server as they are. By allowing the server to read the information it
// Obtain the relative path and absolute path of the current file in Servlet and JSP. // In JSPOut. println ("absolute path corresponding to the root directory:" request. getRequestURI () " "); String strPathFile = application. getRealPath (request.
After Sun officially released JSP (Java Server Pages), this new Web application development technology soon attracted people's attention. JSP provides a unique development environment for creating highly dynamic Web applications. According to Sun,
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
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.