One, custom Jstl label1. Write the label Processing class:(1) Implement Simpletag interface, through the Setjspcontext () method can get to Jspcontext object, is actually PageContext object.Complete the logic in the Dotag () method by JspWriter out =
Expression languages can use custom functions in addition to the basic operators. The function of the expression language is enhanced by the use of custom functions.El expression function, the main function is to complete the modification of the
For Struts controlHibernate operations database.Spring uses a decoupledFirst step: Create a Wed Project first.Step Two: Configure Struts21. Add the basic jar package required by Struts2 to the Lib directory under the package name such as:2. The
1.1.1 Windows installation1) DownloadFirst download the latest version of the JDK to the Oracle website (http://www.oracle.com/technetwork/java/javase/downloads/index.html).2) InstallationInstallation complete, assuming the installation directory is:
The Web. XML start constraint inside the MAVEN project is this XML version= "1.0" encoding= "UTF-8" ?> xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance" xmlns= "http ://java.sun.com/xml/ns/javaee " xsi:schemalocation="
This should start with an exception.
According to TLD or attribute directive in Tag file, attribute value does not accept any expressions
ExceptionCodeYes
If jstl1.0 is used, an exception will occur. Because 1.0 does not support attribute
When creating a web project, you must select J2EE specification level. If you select J2EE 1.4, you can use MyFaces 1.1.5. If you select Java EE 5.0, you cannot choose MyFaces, after N tests, I finally added MyFaces 1.2.4 to the application. The
In enterprise applications, Tomcat is used as an application.
Service
But tomcat, as a lightweight application server, has limited load capacity and is overwhelmed after the system is launched. At this time, people will think of clusters,
NOTE *: Integrated development environment (ide,integrated development environment) is an application for the provider development environmentNote *: The GUI (graphical user Interface, or GUI, also known as graphical user interface) refers to the
Any complete MVC framework needs to solve some common problems in the Web development process, such as request collection and distribution, data transfer and conversion, and the current most popular SPRINGMVC and Struts2 are no exception. In this
It was the problem of the interceptor, the result of the home page, still found the problem.The company website project inside, is uses index.action as the homepage, accesses the Web-inf inside the HTML file. But I set but not successful, traced in
In real-world development, such as a large number of JSP scripts in order to simplify JSP, we need to use standard tag libraries and El expressions, but the tags provided in the new tag library are limited and cannot fully meet the needs of
This is due to the working principle of the servlet. Let's start by briefly reviewing the life cycle of the servlet "initializing->init->service->destroy-> Offload".As we all know here, when we define a servlet in Web. XML, we can give them a value
Reproduced:
Http://blog.sina.com.cn/s/blog_85f5590f0100wm7q.html
Now the JSP books are directly related to the use of JSP, and then explain the use of serverlet, there are books are first to tell about the use of serverlet, and then explain the use
2007 March
Sun never publishes the specifications of the servlet versions of Web. XML, and it's hard to find it even if it's online. The servlet container that follows the support will publish some sample programs, good luck, there will be the
If Spring is used, you can replace it with org. springframework. web. filter. CharacterEncodingFilter.[Html]Xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"Xsi: schemaLocation =
1. Custom tags: Java classes that implement specific interfaces and encapsulate predefined behaviors written in Java code.
* During runtime, the tag is replaced with the corresponding predefined Java code.
* The JSP custom tag provides a method to
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.