1. Foreword
In order to understand the origin of this framework, we first look at the content of the Java file that the JSP parser converts to our JSP code.
The following is a JSP file test.jsp
Out.write ("");
%>
A Servlet1, servlet, ServletConfig: The former corresponds to a servlet class, which corresponds to the web.xml in the configuration information(1) Servlet:Init (ServletConfig): Once a class is loaded and instantiated, it is invoked once.Service
To avoid having to do with HTTP 404 errors in the future, decide to write down every time you encounter this type of error in case of a query.
Because no struts2 before, can normal access to the application directory files, after configuration
First, JSP running environment configuration1. (apache+ resin-2.0.5) configurationIf your site is based on Apache and now want to use JSP, how to do it. You can do this through some JSP engines that support Apache (such as Resin,tomcat,jser, etc.).
I. Overview
In the previous article, we can use the MIME type module and file transfer module for the client to return any type of file, but currently can return only static html,css and other files, and JSP and other server-side language can be
Note: The filter mainly filters the value inside the request,response.
*web.xml----
* Login Action Add cookie-------
*filter Filter Gets cookies------
(without a new username, password, read the cookie directly through the query database, get user
This entry is transferred from the "JSP Advanced Programming" book.I hope you can distinguish between Chu JSP (Java Server Pages) and JS (Java script) after reading this primer.I hope these two documents will be helpful to you........................
Create a project
We developed using the Eclipse and Tomcat for the Web server. Eclipse we need to use "Eclipse IDE for Java EE developers" (an IDE tool prepared by Eclipse for Java EE developers) and click here to download the latest version of the
1, Page command in the pageencoding:
Sets the encoding to use when the JSP is compiled into a servlet when it is read. Typically, the strings that are defined inside the JSP (defined directly in the JSP, rather than the data submitted from the
I imported a MAVEN project but the JSP page has been an error, I first follow the online experience to operate the following steps:Add dependent dependencies on Javax.servlet in the Pom.xml configuration file: javax.servlet servlet-api
ObjectiveThis article mainly describes Springboot integrated Jsp and springboot integration Thymeleaf, to achieve a simple user-deletion sample project. In advance, these two are separately integrated, namely two projects. If you need one, just look
The so-called attribute range is the range of save that can be accessed after a property is set, after how many other pages are still accessible.One, JSP attribute scopeThere are four attribute ranges available in the JSP, and four attribute ranges
Spring Boot Integrated JSPSteps:1. Create a new spring boot project2. Modifying the Pom fileorg.springframework.bootspring-boot-starter-weborg.apache.tomcat.embedtomcat-embed-jasperjavax.servletjstlThese dependencies must be remembered Plus!!!3.
1. Definition:EL (Expression Language) is designed to make jsps easier to write. The expression language is inspired by the ECMAScript and XPath expression languages, which provide a way to simplify expressions in the JSP, simplifying the code for
1 Custom Labels 1.1 Introduction Requirements: output to the browser the current customer's IP Address (use jsp tags only)1.2 first custom label development steps 1) write a generic java class that inherits the Simpletagsupport class, called the tag
JSP enterprise interview questions (4)5-1. Briefly describe the relationship between Servlet and JSP.
JSP is implemented in another way. servlet is an earlier version of JSP. In JSP, it focuses more on the page performance, while in servlet, it
I can see some netizens mentioned this problem and asked for more information. In fact, both of these questions have positive answers, but it is best not to do so.
If all the objects in the session are serialized, you can pass httpsession as a
Redirects an HTML file, JSP file, orProgramSegment.
JSP syntax
Relativeurl"|" Expression%> "}/>
Or
Relativeurl"|" Expression%> "}>
Parametername"
Value = "{Parametervalue| Expression% >}"/> +
Example
1 jstl
Jstl (JSP standard tag library, JSP standard tag Library) is a continuously improved open-source JSP tag library maintained by the Apache Jakarta team.1.1 roles of jstl
Jstl accelerates the development cycle and greatly simplifies the
I. Basic concepts:
1. Tag ):
A tag is an XML element. A tag can simplify and maintain a JSP webpage, and supports multiple language versions for the same JSP file. Because tags are XML elements, their names and attributes are case sensitive.
2. Tag
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