1. parameter transmission garbled characters
1. Parameter garbled characters passed in post mode:
Add a filter or request. setcharacterencoding ("UTF-8 ");
2. parameters transmitted in URI or get are garbled:
Modify tomcat/config/server. xml
I. Problems Found
Run the JSP page referenced by jstl
Error Reporting http://java.sun.com/jsp/jstl/core cannot be resolved in either web. xml or the jar
Ii. Cause Analysis
Possible 1: version issues
Jstl1.0 declaration is: Jstl1.1
JSP is becoming an excellent Java technology that can be used to create dynamic web applications.
Program . There are countless reasons why Java programmers love JSP. Some people like the "one-time writing, everywhere" method it brings to
Warning: No configuration found for the specified action: '/sdoubleselect. jsp' in namespace: '. Form Action defaulting to 'action' attribute's literal value.8:56:21 freemarker. log. jdk14loggerfactory $ jdk14logger ErrorSevere:
Expression
JSP provides some built-in objects to simplify page development. These built-in objects do not need to be instantiated and are implemented and managed by containers.
1. Out object: It mainly outputs data to the client
2. Request object: requests
Testoutofmemory
Save the above Code to JSP and publish it to Tomcat, resin, WebLogic, and websphere. What are the results of experiment access to JSP?
The answer is:
All servers except resin will shut down. Why doesn't resin?
In fact,
First, download the tool:I suggest using editplus + JDK for beginners. I think it is easier to use editplus + JDK for beginners, such as JB, eclipse, and jcreator, but it does not know how to configure environment variables for beginners,Thus it is
This problem has plagued me for a long time. The previous method was to use JS, And now I finally found a solution:
Popular online versions:
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
When Using JSP in multiple languages (Chinese, Japanese, and English supported), I use editplus
Replace
Then an error is reported during running:
Java. Io. charconversionexception: Illegal utf8 Encoding
At first I thought the UTF-8 was
JSP generates static hmtl filesTo reduce the pressure on the server, change the original article management system to generate static html files from JSP files and then access the HTML files directly. The following is a simple example.
1. buildhtml.
If you do not need to process the tag ontology when customizing the tag library, you can inherit the tagsupport category. The tagsupport category implements the tag and iterationtag interfaces, the iterationtag interface is a sub-interface of the
To automatically refresh the JSP page for a period of time, use the following method:
Use the Meta Refresh tag for Refresh.Meta Tags are part of the section of the HTML document.Example:
After a period of time, the system automatically
1. Introduction
Database applications, especially WEB-based database applications, usually involve the storage and display of image information.
The common method is to store the image to be displayed in a specific directory, store the name of the
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.
The homepage of common category information must read at least six databases. Other Sub-pages may or may not exceed a dozen times.
When using the database connection pool, Tomcat can support a very limited amount of concurrency. System resources
1. Download
J2sdk download
Http://java.sun.com/j2se/1.4.2/download.html
Download version is j2sdk-1_4_2_08
Download eclipse
Http://www.eclipse.org/downloads/index.php
Download version is eclipse-SDK-3.0.2-win32
Download Eclipse
To learn about JQuery, I found an article "use JQuery" on the IBM website and downloaded the sample compression program (jquery. war), because it is designed using JSP, I need to configure the JSP development environment.
1. download Java 5.0 (D: \
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.