Attach GitHub address with Script circle part of the area, used to store the template Note 1, to have ID 2, type is text/html 3, {{Each list as value I}} Circle traversal range 4, {{value.xxx}}} to take value
Call Method: Template ("id",
JSP jumps to the servlet:
1. note that the URL here cannot directly write your servlet name, but to fill out the url-pattern of the servlet in Web.xml, namely "/xxxservlet" form. There are slashes, slashes, staves. In addition, this way directly
JSP Session Usage
Your session object ID is:
you are
people who visit this site
Session object: An object that is used to hold each user's information separately to facilitate tracking of the
Author: He Zhiqiang [hhzqq@21cn.com]
Date: 2000-08-04
2000-08-16
Version: 1.1
Functions: JSP database Operations routines-stored procedures-Jdbc-odbc-sql Server
The stored procedures for SQL Server are as follows:
CREATE PROCEDURE
First of all, the official recommendation of the use of template technology, such as Freemark, Thymeleaf, of course, can also use JSP, where the simple configuration of the springboot in the JSP support
1. Add support for JSP
First, what is JSP JSP (JavaServer Pages) is initiated by the Sun Microsystems Company, a number of companies involved in the establishment of a dynamic Web page technology standards, its Web site for the http://www.javasoft.com/products/jsp. Adding
1, scope implicit objects-built-in map implementation, setattribute, GetAttribute,
1, pagescope page scope pagecontext– stored content can only be valid within the current page scope
2, Requestscope request scope request– can only be valid within
In the traditionalJSPProgram.CodeAndJava codeIt is convenient to write together, but it also makes the page difficult to maintain. The burden of HTML developers and JSP developers increases. We can turn this traditional technologyPage pulling data
Instance: Now, a parameter named username is passed to the action on the JSP page.
URL: http: // localhost: 8080/studentsystem/role_list.action? Username = qk12333.com
1. Get it through the Get Set Method
Define a variable with the same name
How to Use JS programs:
Scripts can be written anywhere in hmtl or JSP.
1. . Several On the same page are interconnected, rather than independent, and variables can access each other. Like java code snippets in JSP.
2. demo : You can write
First, import the jquery package file.Download.
Then introduce the package in JSP:
Next, introduce your own JS:
The content of my. js file is as follows:
$ (Document ). ready (function () { $ (" Hello "). appendto ("body"); $ ("# Stop" )
1. garbled Chinese characters may occur when the request object processes get and post requests:Tomcat processes get and post requests in different ways.A POST request stores parameters in the message body of the request data packet.Therefore, you
Many Web applications and enterprise applications involve long-time operations, such as complex database queries or heavy XML processing. Although these tasks are mainly completed by the database system or middleware, however, the results of task
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)
Character encoding of JSP and Servlet in Tomcat Use filter to change the Request Encoding
In the previous article, we discussed the issue of JSP and Servlet character encoding under tomcat!
Knowing that when no request encoding is specified, the
In-depth analysis of JSP environment session-based online user statistics
As a rising star, jsp can play a certain role in the Server programming environment. It is well supported by a series of industry standards.Closely related. Session is one of
I am a Java-based developer. If the Flash Action Script is an extension of Java, I still know something...
The school suddenly asked us to use JSP to make a page for voting... I don't even know why JSP is a thing. I can't help it. I just had to
1. FCKeditor IntroductionFCKeditor, an open-source HTML text editor, allows web programs to have powerful editing functions such as MS Word. FCKeditor supports the following popular browsers:
2. preparations:
Environment: winddows XP, tomcat6.0, and
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