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
// 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.
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
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
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
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
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
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
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 "."
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
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
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
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
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
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
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
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
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
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
tagged beanname attribute: Specifies the name of the serialized bean.
How can this problem be solved?
It is best to give an example. // ================================================ ========================================================== ======
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