what is JSP. Jsp:java server Pages, which is fundamentally a simplified servlet design, implements the use of HTML tag JSP in Java as a Dynamic Web-page technology standard and a JEE standard JSP, like the servlet, is executed on the server side
JSP
How the JDK environment can be configured to find Tomcat online can also be downloaded to, no longer repeat the open MyEclipse
The following interface appears
Choose your own work space, I choose to be
C:\users\administrator\desktop[2016-03-07][blog]
Simply put,--js is performed on the client and requires a browser to support JavaScript. The JSP is executed on the server side and requires a server program on the server that supports the servlet. JS code is able to directly from the server
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
The introduction of the jquery plugin in the JSP page is mainly the path problem introduced below, there are three ways:
1 . Create the JSP file directly under the Wetroot, put the jquery-1.7.js into a new folder: as shown:
The code to introduce
Summary:
This paper first introduces a JSP's source file execution process, that is, after three stages, two times coding, to complete a complete output. It is particularly noteworthy that in this process, the coding problem runs throughout. We know
Deploying Project Web in Eclipse sometimes accessing a JSP throws the following similar exception informationOrg.apache.jasper.JasperException:The Absolute uri:http://java.sun.com/jspDeploy the Web project if this exception is thrown. Please ensure
The number of words in the JSP form that controls the display of characters, and the ellipsis is used instead
First introduce struts2 label
5" >
... Show omitted characters when mouse moves to ellipsis
JSP gets the session value problem from the action there are several ways:
For example, I have a session in action ("SessionID", "11111111")
First, use the struts tag to obtain:
Second, session is also one of the built-in objects, you can use
When the user exits the system, if you reopen the page after the login, you should jump to a page that prompts the user not to sign in, which is easy to do, as long as the head of the JSP page plus the validation session code can be. However,
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 fact, the browser load display HTML order is in the following order:
1, ie download the order is from top to bottom, rendering the order is from top to bottom, download and rendering is carried out at the same time.
2, when rendering to a part of
Many beginners are always confused about the relationships and differences between JavaScript, Java, JSP, and J2EE. To help you quickly understand the relationships between several users, we have explained the following:
1. Javascript is used to
Blog: http://elf8848.iteye.com
Struts2, springmvc, and Servlet (JSP) performance comparison tests.
Servlet's performance should be the best and can be used as a reference. Other tests should be aligned with it and should be referenced.
As a
I. Development Environment Configuration
Step 1: Download j2sdk and tomcat: To the sun official site (http://java.sun.com/j2se/1.4.2/download.html) download j2sdk, pay attention to download the version of Windows offline installation SDK, at the
1. Which of the following methods are generally implemented during servlet execution?
A: Which of the following methods are generally implemented during servlet execution?
(1) Public void Init (servletconfig config)
(2) Public servletconfig
JSP method for obtaining the current server Date and Time
Java. Text. simpledateformat formatter = new java. Text. simpledateformat ("yyyy-mm-dd hh: mm: SS ");Java. util. Date currenttime = new java. util. Date (); // obtain the current system
The QR code generated in Java is directly output to the page if it is not saved to the disk. Therefore, the generated QR code needs to be output directly to the page in the form of a stream, I use myeclipse and tomcat.
The principle is: when loading
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