I. Preface
JDK (Java Development Kit) is the basis of all Java applications. It can be said that all Java applications are built on this. It is a set of APIS, or Java class. The latest version jdk1.3 has been officially released. Considering that I
In a web application, you cannot access the local file de. You can move the file to be referenced to the project and obtain it through the relative path. Sometimes we need to access the local file, so we can pass in the form of a stream. For example:
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 process of developing and using JSP custom tags:
1. Development label implementation class.Hellotag_interface.java file content:Import javax. servlet. jsp. tagext. Tag;
Import javax. servlet. jsp. pagecontext;
Import javax. servlet. jsp.
The file upload function is widely used in B/S-based development models. The implementation of JSP file upload is as follows: Use the getinputstream () method of the servletrequest class to obtain the data stream sent from a client to the server,
1. jsp implicit object1. jsp implicit objects are instances of a group of classes managed by JSP Container loading.
* JSP implicit objects are defined in the _ jspservice method. Therefore, they can only be used in expressions and scriptlet. 2. jsp
I. jstl, JSP standard tag Library
* A set of standard labels used to compile and develop JSP pages. The purpose is to simplify the JSP page design.* Composition:Core core tag Library: http://java.sun.com/jsp/jstl/core prefix CI18n
I. MVC requirements
Separate the code used to create and operate data from the code used to express data. JSP separates most of the content from dynamic content. Servlet is used to process business logic. The servlet processes the initial request,
A solution to the problem of JSP data and JavaScirpt Data Interaction for WEB programs, front-end (JavaScript) and backend (JSP/Servlet) cannot share data, only the back-end program (JSP) can output data and generate pages to the front-end. At this
I used jcaptcha for the verification code when I made an opencms form. After a brief look, I thought it was pretty good. I 've collected it. Today I 've improved a little bit. Hey hey :)
Use the Open Source component jcaptcha for jsp color
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
The following methods are summarized to solve the problem of JSP Chinese display: 1. Add a Statement on the jsp page: the Chinese display is normal. 2. For the text box from the webpage, use String parameter = request. the String obtained by
The interaction between JSP and XML in the JSP and XML document published by skynet in May 2 only mentions one way to use the tag library. There are two important ways to interact between JSP and XML, therefore, in this article, I would like to
Obtain the total sales volume
In most cases, there are many records in the sales list, so it is very important to access the database quickly and efficiently. Now we only need to access the total sales volume of each product in the database.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