JSP Working principle
All JSP pages, when executed, are converted to Servelet (. java) by the server-side JSP engine, and then by the JSP engine invoking the Java compiler, compiling Servelet (. java) into a class file (. Class) and by the Java
Pageencoding is the encoding of the JSP file itself
ContentType CharSet refers to the content encoding of the server when it is sent to the client
JSP to go through the "code" two times, the first phase will use Pageencoding, the second phase will
One: Description
In this article use proficient, skilled, familiar, understand the symbol of your mastery of a technology.
Proficient: able to master more than 85% technical points of this technology, use this technology for more than two years,
JSP is very similar to ASP. Both provide the ability to mix some kind of program code in HTML code, and the language engine to interpret the execution code. In an ASP or JSP environment, HTML code is primarily responsible for describing the display
Tomcat is a servlet container with Web server functionality. We can download it from the address below.Http://apache.mirror.phpchina.com/tomcat/tomcat-6/v6.0.14/bin/apache-tomcat-6.0.14.exeThe installation is very simple, the default port number is 8
System: WIN2003+IIS6.0+J2SE 5.0
For JSP beginners to talk about Jsp+iis must have a big head!
Although the Jakarta in the JK2 can be solved, but its configuration is quite cumbersome!
Use servletexec to solve it!
For the mainstream JSP server,
JDBC: Communication interface function 1.mysql driver (JDBC): The driver is placed in the project library or tomcat/lib, MySQL website jdbc includes the JDBC driver and API2.JDBC API: Database access interface 3.jsp and database access 4. Process
pageencoding= "UTF-8"%> files included in the Include hello world!pageencoding= "UTF-8" import= "java.util.*"%>include Instruction Example The current date and time are: Java Web ch03_4_include.jsp
First, the Origin of JSPIn many dynamic Web pages, most of the content is unchanged, only the local content needs to be dynamically generated and changed. For example, the number of times a news is viewed is changed dynamically, and the code that
Foreword in modern web development, embedding Java script in JSP is not recommended, because it is not conducive to the maintenance of code. There are a number of good, alternative ways to avoid writing Java scripts in the JSP. This article is only
Recently in the sonar scan of things, has been only scanning Java code, so that the statistics of the data escalation leader many developers do not obey (say I do not have to write JSP to write JS? ),So good, so continue to the whole sonar, in the
When spring boot adds JSP support, you first need to build a Web-type MAVEN ProjectAfter that you need to add a JSP support Pom as follows:org.apache.tomcat.embedtomcat-embed-jasperThe rest is a routine with MVC.This article is from the "Heart of
To facilitate the modification and subsequent packaging routinesFirst user visited page from Web. Xml to find index.html Welcome page settings, this can set a limited access to the page, here is index.html then the user can be sent through the index.
Requirements: The system front-end JSP uses the Easyui DataGrid to show some task information, a status message in the task information that shows the value is a number,You need to display the status as descriptive information based on the mappings
"${fixedassetslist}" var="fa">"#FFFFFF">${fa.id}${fa.name}"Currency">${fa.money}"${fa.startusetime}" pattern="yyyy year MM Month DD Day hh:mm:ss "/>Note:FMT is the abbreviation for format and needs to be introducedNote that there is a JSP, the
Import= "Java.awt.*,java.awt.image.*,java.util.*,javax.imageio.*"%>Color Getrandcolor (intFcintBC) {//get random colors for a given rangeRandom random =NewRandom (); if(FC > 255) FC= 255; if(BC > 255) BC= 255; intr = FC + random.nextint (BC-FC);
This article is mainly used for individual study and review. Welcome to guide, discuss1, add maven dependencycom.github.miemiedevmybatis-paginator1.2.172. Add a paging plugin to the configuration fileadding interceptors to the 3,SPRINGMVC
If the JSP is not developed using inheritance, but instead uses standard instructions or action elements to include, it is too much repeating code.Rapid-framework is a Google project, you can implement the JSP page inheritance, that is, the writing
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