Static inclusion: content is embedded into the page before the JSP page is converted into a servlet, and then compiled and run.
Dynamic inclusion. During running, the statement is dynamically compiled and loaded only when a request is sent and
Step 1: TLD Function Definition:
First, under the WEB-INF folder under the project folder, see a function-taglib.tld File
This file is actually an XML description file with the following content:
Xmlns: xsi =
Myeclipse sets the default encoding method for JSP pages:
Windows-preferences-myeclipse-files & editors-JSP-encoding on the right: Set to iso000046/Unicode (UTF-8)
In the Java file, myeclipse sets the author, date, and other
Since its access to Java and JSP, it has been constantly dealing with Java's Chinese garbled characters, and now it has finally been completely solved. We will share our solutions with you. 1. Java Chinese problems JAVA kernel and class files
1. PrinciplesDtree is a free Javascript script. You only need to define a limited number of parameters to create a beautiful tree menu. Download directory:Http://www.destroydrop.com/javascripts/tree/The following is an example of dtree usage:1)
1. jsp header
2. Request. setcharacterencoding ("UTF-8"); character encoding of the request submitted on the JSP page
3. the header information of the JSP page Processing request is the same as that of the first and second
4. transcode the request
Cookie concept:The cookie format is actually a piece of plain text information, which is sent by the server along with the webpage to the client and saved in the specified directory on the client's hard disk. it is said that cookies may cause
Simply put, Sun first developed the servlet, which has powerful functions and advanced system design. However, it still uses the old CGI method to output HTML statements, therefore, it is inconvenient to write and modify HTML. Later, Sun introduced
Author: thesixthday, source: CCID technical community, responsible editor: Li Chunyu,
After receiving the response, the browser no longer needs to render and refresh the entire page. Instead, it only needs to execute this script and update the page
Chinese parameter garbled characters passed between actions in struts2Solution 1 (verified ):Both actions define the get and set methods of the parameter attributes to be passed. They must be the same!Define in struts. xml:/Homepage. IC? Loginerror =
JSP Expression Language (2)
Point operators and index operators can be used to access map. For example, the following two El expressions return the value corresponding to the key named mykey:
However, there is a small difference
When you access the JSP page, the following message is displayed:
HTTP status 500-
TypeException reportMessageDescription The server encountered an internal error () that prevented it from fulfilling this
Generally, Servlet and JSP technologies are integrated in a well-designed web application. Servlet controls business flow, and JSP is responsible for displaying business processing results. At this time, the redirection technology will be widely
JSF applications require some display technology, such as JSP. One of the cool features of JSP is that it can be expanded with custom tags. A custom tag is a special XML Element supported by Java code. In addition to standard JSP elements or HTML
Preface the paging function is inevitable during database usage, but JDBC specifications do not solve this problem well. Many of my friends have their own solutions for this demand. For example, we use a collection class such as vector to save the
I. jsp operating principle:
When a browser requests a JSP page from the Web application server, the Web Application Server converts it into a Servlet File (that is,. java file), and then compile the Java file into a bytecode file (. class file).
Expression Language)
I. Purpose: To make JSP writing easier.
The expression language is inspired by ecmascript and XPath expressions. It provides methods to simplify expressions in JSP. It is a simple language based on available namespaces
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