Escape encoding in JSP pageWhen I passed parameters in Chinese today, I was unable to pass the live encoding, so I thought of using escape.Request. getparameter could not receive the parameter, so he thought about how to receive the parameter.Tested
Install JDK
First, install JDK. My JDK is installed in the C drive. The JDK root directory is C:/Java/jdk5.
Then configure the environment variableRight-click my computer> Properties> advanced> Environment Variables
Find the path "variable"
Myeclipse: Modify the Page Template (JSP and HTML) in myeclipse development tools)
1. Using myeclipse tools to develop web projects, there is a common problem, that is, when creating a page file, you need to modify the pageencoding value, the
// The following code is placed on the JSP server to generate a Random Digital Image verification code.
Color getrandcolor (int fc, int BC){Random random = new random ();If (FC> 255) fc = 255;If (BC> 255) BC = 255;Int r = FC + random. nextint (BC-Fc
1. What is jstl?
Jstl is an open-source JSP tag library that is constantly improved and maintained by Apache's Jakarta team. Jstl can only run on containers that support jsp1.2 and servlet2.3 specifications, such as Tomcat 4.x. However, JSP 2.0 will
How to Set and obtain initialization parameters in JSP
Get init parameter in JSP page
By reawer 2008-8-13Initparamter access method 1 (built-in object ):
I. By servletconfig:Parameter1: {config. getinitparameter ("p1 ")}Parameter2: {config.
Standard JSP tags can call the JavaBeans component or execute customer requests, which greatly reduces the complexity and maintenance of JSP development. JSP technology also allows you to customize taglib. In other words, taglib can be seen as an
Image. jsp
Color getrandcolor (int fc, int BC ){Random random = new random ();If (FC> 255) fc = 255;If (BC> 255) BC = 255;Int r = FC + random. nextint (BC-Fc );Int G = FC + random. nextint (BC-Fc );Int B = FC + random. nextint (BC-Fc );Return new
This article does not describe what struts is, nor do you want to introduce the magic of Struts. It only discusses how to configure struts and use struts.
Learning Materials: http://struts.apache.org/2.1.6/index.html
If you need to understand the
Objective: l to further understand the MVC mode; L to understand the basic implementation process of the deletion function; and l to understand the basic implementation process of the modification function. Main Content: l use MVC to delete
Objective: To further master the MVC design mode, to master the implementation of the add function, and to master the implementation of the paging display function. Main Content: l introduce the MVC mode through the user information addition
Use of online text editor FCKeditor in JSP Project Development the following operations are performed on the Tomcat server (not in the development environment) first download two packages: fckeditor_2.6.4.zip, (FCKeditor main file) FCKeditor-2.3.zip,
From: http://cantellow.javaeye.com/blog/372941
I don't need to say much about the differences between the two. A lot of searches are probably:
Redirection is a client jump, and forwarding is a server jump
The forwarding and redirection statements
The TTP protocol is stateless, that is, information cannot be transmitted through the HTTP protocol itself. ASP applies the session object to track the user's operation status. JSP uses an object called httpsession to implement the same function.
I often see people in the discussion board asking me how to display Chinese garbled characters in JSP. How can I use the Chinese characters entered by the user I obtained through the request be garbled? How can I write Chinese characters to the
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