Servlet & JSP (21)

The functions tag library is a standard El function set defined in jstl. The functions defined in the functions tag library are basically functions that operate on strings. To use the functions tag library on the JSP page, use the taglib command to

Disable cache code in JSP

// JSP disables the cache code response. setheader ("Pragma", "No-Cache"); response. setheader ("cache-control", "No-Cache"); response. setdateheader ("expires", 0); // The Code cannot run correctly on the network. For details, refer to If (request.

Servlet & JSP (V)

We have discussed the init () method in servlet & JSP (2), and mentioned that the init () method contains a parameter of the type servletconfig, the servlet container uses this parameter to pass configuration information to the servlet. Servlet uses

Servlet & JSP (6)

What is an attribute? In servlet & JSP (V), we learned how the listener of servletcontext creates an object after obtaining the context initialization parameters, and how to store the object as an attribute to servletcontext, so that other parts of

Servlet & JSP (9)

It is difficult for us to ensure that the programs we write will not cause errors, so we need some error handling mechanisms to help us better solve exceptions and handle errors. When you browse a webpage, if the accessed page does not exist, you

Servlet & JSP (12)

In this article, we develop a JSP instance to implement a message board program. The database knowledge discussed in the previous servlet & JSP events (11) also paves the way for instance development. In addition, let's review the JSP knowledge

Servlet & JSP (16)

tld

In the previous article, we discussed custom tags and completed a simple empty tag instance by implementing the tag interface. In this article, we first use an instance to implement an attribute tag. This instance implements a label to calculate

Servlet & JSP (14)

In this article, we will discuss filter ). A filter is an intermediate component that filters between source and target data. The filter can intercept the request and response messages between the client and the resource, and filter these

Servlet & JSP (17th)

In this article, we will discuss Expression Language (EL ). Let's first discuss its syntax. El syntax The El syntax is simple. All El expressions start with $ {and end. For example, $ {expr }. "[]" And "." Operators El uses the "[]" and "."

Servlet & JSP (19th)

In this article, we will continue to discuss jstl. The i18n tag library is generally used to compile international applications. It is divided into two parts: internationalization, date, time, and number formatting. To use the format tag on the JSP

Servlet & JSP (20)

Jstl has a lot of content. This is the third article devoted to it. Although it is a bit more, as an important part of JSP development, we still have to patiently continue to learn. This article mainly discusses the SQL tag library and XML tag

Servlet & JSP (23)

Let's discuss how to develop secure Web applications. Most resources on the network are open and free of charge. However, some resources can only be accessed by specific users. For example, a forum can only be spoken by registered users, and

Servlet & JSP (4)

In this article, we will focus on two aspects: servlet lifecycle and Servlet Request forwarding. In fact, we have already roughly introduced the entire servlet lifecycle process, but we have not systematically mentioned it. In this article, we will

Servlet & JSP (25)

Web applications are divided into two stages: development and deployment. Through deployment, components can be loosely coupled with each other, reducing the maintenance difficulty of Web applications. This article mainly discusses how to configure

Servlet & JSP (1)

I saw an article "Beginner Java Web development, please stay away from various frameworks and develop from servlet" in open-source China. I feel ashamed to think that I have been obsessed with various frameworks before. So I read Sun Xin's

Servlet & JSP (26)

This article introduces JSP and javamail. As more and more Java Web applications need to integrate the email function, the javamail component perfectly solves this problem. How email works The email process follows the customer-server mode. Each

Customize a simple JSP tag

tld

WEB Project, New Java class: package leon.webtest.tags;import java.text.SimpleDateFormat;import java.util.Date;import javax.servlet.jsp.JspException;import javax.servlet.jsp.JspWriter;import javax.servlet.jsp.tagext.TagSupport;public class DateTime

Why can the code after response. sendredirect () in JSP still be executed?

Test. jsp page1. system. Out. println ("before response. sendredirect ");2. response. sendredirect ("/target. jsp ");3. system. Out. println ("After response. sendredirect ");Why is the execution performed in line 3?I thought that sendredirect was

JSP: type, class, and beanname in usebean

The online explanation is as follows:Class = "package. Class"Use the New Keyword and the class constructor to sample a bean from a class. this class cannot be abstract and must have a common constructor without parameters. the package name is case

JSP: usebean beanname

tagged beanname attribute: Specifies the name of the serialized bean. How can this problem be solved? It is best to give an example. // ================================================ ========================================================== ======

Total Pages: 280 1 .... 236 237 238 239 240 .... 280 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.