Import javax.servlet.*;Import Javax.servlet.http.HttpServletResponse;Import java.io.IOException;
/*** Filters used to make Browser not cache the page*/public class ForcenocachefilterImplements Filter{
public void Dofilter (ServletRequest request,
Servle Filter Detailed the basic principle of the servlet filter:
When the servlet is used as a filter, it can process the client's request. When processing is complete, it is handed over to the next filter, so that the customer's request is
Json is used for data interaction in the front and back of the project this time. After this time, I will take a rough look and briefly summarize json. JSON: JavaScript Object Notation (JavaScriptObjectNotation ). JSON is the syntax for storing and
Json is used for data interaction in the front and back of the project this time. After this time, I will briefly summarize the principles and usage of json, if you need to know about it, you can refer to the json used in the data interaction at the
The Ajax () method interacts with the background, and the ajax method interacts with the background.
Ajax is called "Asynchronous JavaScript and XML" (Asynchronous JavaScript and XML). It is a Web page development technology used to create
This article mainly summarizes the use of forms in JS. If you need it, you can refer to it and hope to help you. 1. How to refresh the page in javascript
Window. location. reload ();
Use window. open () to refresh the parent window.
Window.
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.
I used struts's multi-language function to write something and used the locale object. (I will not talk about how to do it. I don't want to talk about struts here ).There is no problem in the local test, and the switch between Chinese and English is
Is your J2EE application running slowly? Can they withstand rising traffic volumes? This article describes how to develop high-performance and highly elastic JSP pages and Servlet performance optimization technologies. It means to build as fast as
This article mainly summarizes the use of forms in JS. If you need it, you can refer to it and hope to help you. 1. How to refresh the page in javascript
Window. location. reload ();
Use window. open () to refresh the parent window.
Window.
// 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
Import java. AWT. image. bufferedimage;
Public class imagescale {
Private int width;Private int height;Private int scalewidth;Double support = (double) 3.0;Double Pi = (double) 3.14159265358978;Double [] contrib;Double [] normcontrib;Double []
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
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.