JSP Summary 2: Servlet

Servlet is a piece of Java code that can expand the functions of the Web server. Each Servlet is running in the process, and a new Servlet request is run in the Servlet process as a thread.The Servlet container is responsible for connecting the Web

What are the built-in jsp objects?

1. request objectThis object encapsulates the information submitted by the user. by calling the response method of this object, you can obtain the information submitted by the user.When the request object obtains the Chinese characters submitted by

How to use JSP to read and write cookies

Cookie should be a technology that has been used for a long time. As early as the advent of HTML, there was no way to record and identify different users between each independent page. Later, people invented the Cookie technology. When a user

Css background gradient techniques and methods

The following code uses css to implement a webpage background gradient:1. gradient from top to bottomExample Source Code:Body {FILTER: progid: DXImageTransform. Microsoft. Gradient (gradientType = 0, startColorStr = # ffffff, endColorStr = #000000 );

Error page setting in jsp

1. Set errorPage: errorPage. jsp % @ PageIsErrorPage = "true" %> JSP Page Error ~! 2. Application % @ PageInfo = "Bad page" %> % @ PageErrorPage = "errorPage. jsp" %> // go JSP Page Boolean tf = true; If (tf )

Performance Optimization of JSP and Servlet

In this article, we will guide you through the proven performance Adjustment Technology, which will greatly improve the performance of your servlet and jsp pages, and thus improve the performance of J2EE. These technologies are used in the

Three implementation methods of spring dependency Injection

Before explaining the three implementation methods of dependency injection, let's clarify the meaning of dependency injection: Make the component dependent on abstraction. When the component needs to be dependent on other actual objects, inject

Several methods to improve the efficiency of JSP applications

This article introduces several very practical methods to adjust JSP and servlet, which can make your servlet and JSP page response faster and more scalable. In addition, when the number of users increases, the system load will show a smooth and

Introduction to Regular Expressions

In short, regular expressions are a powerful tool for pattern matching and replacement. We can find regular expressions in almost all UNIX-based tools, such as the vi Editor, Perl or PHP scripting language, and awk or sed shell programs. In addition,

Detailed explanation of the Session object on the JSP page

Session: when a user opens a browser and accesses a website, the server allocates a space for the browser in the memory of the server, and the modification space is exclusive to the browser. This Session: when a user opens a browser and accesses a

Use of Actions in JSP

JSP actions allows you to dynamically insert a file, reuse the JavaBeans component, forward to another page, or generate an HTML for the Java Plug-in. The following actions can be used: (1) jsp: include -- include a file when the page is requested. (

AOP Concept Analysis

Why do we need to distinguish J2EE containers from J2EE application systems? We know that a J2EE application system can run only when deployed in a J2EE container. Why is it divided into a J2EE container and a J2EE application system? By analyzing

How to optimize database linked Resources

Problem description: To connect to the database for query on the page, the obtained results are displayed on the page. After each query, close is used to close the connection. Normally, it can be monitored in the database. After a connection is

Jsp code for counting the number of online users

First, write a class:Import javax. servlet .*;Import javax. servlet. http .*;Public class SessionCounter implements HttpSessionListener {Private static int activeSessions = 0;Public void sessionCreated (HttpSessionEvent se ){ActiveSessions

Extjs dynamic Table Generation

When data is displayed on the web, the number of columns and the number of rows in the grid are uncertain. How can we dynamically create tables based on data? The json data of Extjs brings us a good and simple method. To create a grid, you need to

Integration of Apache2.2 and Tomcat5.5 in JSP environment Configuration

Apache and Tomcat are two projects under the Apache Foundation. One is the http web server and the other is the servlet container. The latest 5.5.X series implements servlet 2.4/JSP 2.0 Spec. In our production environment, Apache is often used as

Write thread-safe JSP applications

JSP is executed in multiple threads by default. This is different from ASP, PHP, PERL, and other scripting languages. It is also one of its advantages. However, if you do not pay attention to the synchronization problem in multiple threads, this

Methods for ASP. NET programs to prevent SQL injection attacks

To prevent ASP. it is not particularly difficult for a NET application to be intruded by SQL injection attacks. You only need to filter all input content before using the content entered in the form to construct an SQL command. You can filter the

Garbled jsp Chinese pages and passing Parameters

Page garbled The reason for this Garbled text is that the character set encoding is not specified on the page. Solution: Use the following code to specify the character set encoding at the beginning of the page. The Code is as follows:

Solution to Chinese garbled characters when using mysql and jsp together

Helper House (www.bkjia.com) Tutorial Development Environment: win7; mysql-5.0.51b; ObjectWeb Lomboz for JavaEE Development Version: 3.3;The famous Chinese garbled characters appeared today when I tried to connect to the database and read

Total Pages: 1800 1 .... 1064 1065 1066 1067 1068 .... 1800 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.