The reason is: by default, Servlet 2.4/jsp 2.0 supports El expressions.
There are two solutions:
1. Modify the definition at the beginning of Web. xml.CopyCodeThe Code is as follows: Xmlns = "http://java.sun.com/xml/ns/j2ee"Xmlns: xsi =
1. homepage (enter a name) (optional, form post to time. jsp ):
Omitted
2. determine the time forward to different pages:
Time. jsp:
CopyCode The Code is as follows: Document: Index
Created on:, 15:48:00
Author: Lucifer
--
Generally, I use the method to include this file. The main reason is that the contained page will be compiled into a file at compilation, the variables can be common to each other, while the method is compiled separately, and the variables cannot
Today, when I used the jstl tag library in JSP, I encountered a very disgusting problem. I remember when I took this course at school a few years ago, I have never encountered this kind of problem. It's really disgusting to see it now.
Generally,
First, we will introduce the storage of tree structures in dB.
Use a two-dimensional table, for example, to store a tree structure:
Now, our goal is to express this tree structure:
It can be seen that there is a hierarchical relationship
Dynamic include
Use the JSP: include action to implement always checks for changes in the contained files. It is suitable for inclusion of dynamic pages and can contain parameters.
Static include
Implemented by using the include pseudo code.
Some enthusiastic netizens replied:STR + = "go to ";I already tried it. No problem
1. The following is a pagination class pageresultset.
CopyCode The Code is as follows: Package page. Bean;
Import java. util .*;
Public class pageresultset {
/**
Tree creation is not complex, but we usually do two or three layers. Such data generally comes from multiple tables, such as departments and employees.
However, this self-join table does not have a definite hierarchy and may be an infinite
Method 1: the simplest and most commonly used method
Or here, you can use gb2312 or GBK, which is only a string of many characters supported by GBK than gb2312.
This method is used to display Chinese characters on the JSP page.
Method 2: Use a
1. requestdispatcher. Forward ()
Is used on the server. When forward () is used, the servlet engine transmits the HTTP request from the current servlet or JSP to another servlet, JSP or common HTML file, that is, your form is submitted to. JSP, in.
If the following content exists, it indicates servlet 2.3/jsp 1.2.
"-// Sun Microsystems, Inc. // DTD web application 2.3 // en"
Http://java.sun.com/dtd/web-app_2_3.dtd>
By default, Servlet 2.3/jsp 1.2 does not support El expressions, whereas
1. requestdispatcher. Forward ()When forward () is used on the server, the servlet engine transmits the HTTP request from the current servlet or JSP to another servlet, JSP, or common HTML file, that is, your form is submitted to. JSP, in. JSP uses
FusionCharts Free: http://www.fusioncharts.com/goodies/fusioncharts-free/
Next, introduce js in the jsp page.
Copy codeThe Code is as follows:
Then writeCopy codeThe Code is as follows:
The parameters in the second line are as follows: the SWF
1. Questions about Image Upload failure
First import the jar packageCommons-fileupload-1.2.2.jar, ueditor. jar
Modify editor_config.js
Find and modify the URL to window. UEDITOR_HOME_URL | "/mypro/ueditor/". mypro is the name of my project.
Modify
There are a basket of online processing methods. The following describes two effective solutions I have used.
1. Compile a string processing function for the program, save it with a static file, and include it in the JSP page for processing Chinese
After searching for a long time, I finally found a jsp that can be used ...... Share !!
Copy codeThe Code is as follows: PageEncoding = "UTF-8" %>
Management Area
Cellspacing = "1" class = "table_style">
Product image: Solid;
The problem lies in the Web. xml declaration when a web Project is created.
The web. xml declaration part is generally divided into the following versions of xsd,
Web-app_2_2.dtd
Web-app_2_3.dtd
Web-app_2_4.xsd
Web-app_2_5.xsd
For more details, see
Image. jsp -------------------------------- Jsp page for Generating Random verification code Images
The Code is as follows:
Copy codeThe Code is as follows: Java. awt. image. *, java. util. *, javax. imageio. * "%>
Color getRandColor (int fc, int bc)
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