1. Introduction
Include action directives can dynamically include a file in a JSP page, the contents of which can be static files or dynamic scripts, and the JSP engine can dynamically compile and update the included dynamic files when they are
1. Introduction
By default, the default encoding for a new JSP page is "Iso8859-1". You can modify the default encoding for a page in the following ways:
Windows---->preferences---->myeclipse---->file and Editors----->jsp---> select the encoding
CKEditor Environment, please refer to the introduction of CKEditor3.6 tutorial in JSP
JSP pages submit form data using Rich Text control CKEditor
JSP pages use Rich Text controls CKEditor custom styles
JSP uses CKEditor and Ckfinder to implement
1. How to mix JSP and SSI #include?
You can include pure HTML in a JSP by using the following methods:
But if the data.inc contains JSP CODE, we can use:
2. How to execute a thread-safe JSP?
Just add the following instructions
3, JSP How
Simply put, pageencoding is the code of the JSP file itself ContentType CharSet refers to the content encoded by the server when it is sent to the client, for example: pageencoding= "GBK", which means to tell the JVM that the JSP itself uses the
Briefly summarize:
Method= "Get",
String Output=new string (name.getbytes ("iso-8859-1"), "UTF-8");
%>
Method= "Post",
String name=request.getparameter ("name");
Here's how it works:
First, talk about the role of several encodings in Jsp/servlet.
JSP Code & lt;! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" > my JSP ' uplode.js P ' starting page Uploaded by: file:
Java code, Web.xml is registered in the/uplodes.action package
Read the properties file in the JSP and set the value to the JS variable:
Web_stderr.properties file contents: [XHTML] view plain copy common.username.error.null = username can is not null. Common.username.error.invalid = Username is invalid.
Passing variables to the view in SPRINGMVC are enumerated types, defined as:
Package Com.xxx.pojo;
public enum Createuserresult {
success,duplicateloginname
}
The value passed to the view is named result
This will fail when determining whether
1. Background
Today dealt with a very aching need, service end of two values, in the JSP page to determine whether one of the values contains another value, using a number of label methods, not the syntax tag structure error is the data structure
What is JSP
The JSP full name is Java Server Pages, the Chinese name is a Java Servers page, is a kind of dynamic page technology, the logic separates from the servlet. Inserts Java program segments (scriptlet) and JSP tags (tag) into the
JSP is essentially a servlet,jsp compile is a "class servlet"
When a JSP server compiles a JSP page, it first writes a servlet to parse the JSP page content, using to turn it into a servlet, a Java class
To access the JSP by file name, where the
Application:javax.servlet. An instance of ServletContext that represents the Web application that the JSP belongs to, and can be used for JSP pages, or for exchanging information between the servlet.
The common methods are:GetAttribute (String
If the parameter value is in Chinese when the request parameter is obtained through the requests object, the obtained parameter will be garbled if it is not processed. In JSP, to solve the request parameters are the Chinese garbled situation, can be
I. JavaBean
1. Understanding: Java classes that can be reused
2. Classification
1 beans that encapsulate data (equivalent to entity classes)
2 encapsulation of the business bean (generally is the implementation of additions and deletions to check)
3.
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
First spit, I stepped on a lot of pits, tears, ah, because not familiar with Maven, there are eclipse bugs, online article information asymmetry ... Well, back to the point, we need to be like this: A project is made up of multiple projects.
It is said that Springboot is a fast-built development framework, just like trying. However, in the use of the process found that after adding a JSP in accordance with the original SPRINGMVC way reported whitelabel error page errors, check all the
JSP pages passing object arrays to the back-end requirementsJsp:1 //Save2 $ ("#submitBtn"). Click (function () {3 var flag = true;4 var eachflag = true;5 var len = $ (". Resttable tbody"). Find ("tr"). Length;6 var arr = new Array ();7 if (len! = 0)
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