Reproduced from: http://www.cnblogs.com/petermsdn/archive/2011/05/06/2039178.html
Velocity is a Java-based template engine (template engine). It lets the designer of the view refer to the Data Objects and commands defined in the Java code in the
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
We often say that JSP has nine large built-in objects are: request, response, session, out, PageContext, page, exception, application, CONFIG.
We know that the JVM can only recognize Java classes and not recognize JSP code, so how are these objects
Compared with the traditional Client/server model database system, the Web database system adopts the three-layer browser/server structure (that is, the network browser/web server/database server structure), which has great advantages. The Web
Data sharing between JSP and servlet (data passing and invocation of data) (1) JSP (page) passes data to the servlet in the most common way: using form parameters or URL hyperlink parameters to implement data delivery (previously mentioned).
(2)
There are many places in the java/jsp to use the operation of the file, file operation is very simple, the following list of some common methods of file operation
JSP file operations commonly used methods:MkDir () method is used to
the decision of browser and its version in js,jsp--front-end development process
On the Internet to find a browser and version of the method there are many, the younger brother summed up one or two to save everyone time.
Method of 1.jquery:
Regular
Declare the DOCTYPE that suit your needs.
Looking at the original code, you can see that the first line is:
3C//DTD XHTML 1.0 transitional//en ""Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
Open some of the standard sites, such as the
1, post submission data is implicit, get is passed through the URL (you can look at the address bar of your browser), used to pass some data that do not need to be classified.
2. When using get, the size of the transmitted data is limited (note
From:http://www.cnblogs.com/kenkofox/archive/2011/03/28/1997638.html
(.....) In Ie,refreshtree's
Getjson do not refresh the problem, reference: http://www.cnblogs.com/kenkofox/archive/2011/04/02/2004101.html)
Originally I want to use Jstree or
There are two common ways to jump pages using JSP1. Forwarding:forward action ID with execution request forwarding
jsp:forward page="6-5-login.jsp" >jsp:forward>
2. redirect redirect using the Sendredirect () method of the
Write servlet, write JSP, write JavaBean program jobThe Servlet+jsp+javabean model is suitable for developing complex web applications in which the servlet is responsible for processing user requests, and the JSP is responsible for data collection
I imported a MAVEN project but the JSP page has been an error, I first follow the online experience to operate the following steps:Add dependent dependencies on Javax.servlet in the Pom.xml configuration file: javax.servlet servlet-api
I. INTRODUCTION of JSPJSP (full name Java Server pages) is a technical standard created by Sun Microsystems and many companies involved in creating a Web page that enables software developers to respond to client requests and dynamically generate
JSP normal printing is very simple, there are many ways, you can use window. Print () This built-in method, you can also use the component webbrowser, you can also use a third-party component such as scriptx to achieve. The default A4 format is
Nine objects:
Built-in object (also known as implicit object, with nine built-in objects): You can use it in script code and expressions without pre-declaration.
1-out:
Javax. servlet. jsp. jspwriter type, representing the object of the output
Solution to JSP include garbled Problem
JSP include files may sometimes contain garbled characters. The following methods can be modified after testing.
In the first case, you can modify the file to be included:
1. When JSP include dynamic files
Premise: assume that your HTTP address is http: // 192.168.0.1/your web application is webapp, then your web application URL is http: // 192.168.0.1/webapp/
Directory structure of Web applications:
Webapp/
Web-INF/
Classes/
LIB/
Web.
There is no problem when uploading files with Chinese names on the web, but there is a problem during the download. After some searching, it turns out that Tomcat does not support Chinese paths and Chinese files by default, if you download Tomcat
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