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
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........................
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
jsp summary
Static Web pageIn web design, a Web page in pure HTML (an application under the standard Universal Markup Language) is often referred to as a "static Web page", and a static web page is a standard HTML file with an. htm,. html file
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
The project has multiple JSP pages that use the same JSP page content. Therefore, I use JSP pages embedded with JSP pages. However, when the two JSP pages are opened in the browser, the style exists, and the style is lost after the page is embedded.
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
The game code is divided into two parts: one is the JavaBean code that generates random numbers and processes the guess information, and the other is the JSP display game page .!
// The following is a Java code used to guess a digital game to
Some time ago, the customer asked our system to exchange data with MS Excel and import and export the data in the system to excel. our system is a B/S structure MIS system made of Java. to solve this problem, I used the open-source Excel project jxl.
HTML comment
Display a comment on the client.
JSP syntax] -->Example 1Generate the same data as the above in the HTML source code of the client:
Example 2 -->In the HTML source code of the client, it is displayed:
DescriptionThis annotation is
JSP,Java,AjaxText Chat Room Design Ideas
Text Chat rooms can be used as a platform for topic discussion or an online conference room, improving the communication means of the OA system.ShufeiOAUsing J2EE technology, developers use JSP, Java, and
As part of web development, database access is also essential. Let's take a look at JDBC first.
JDBC
JDBC (Java database connectivity) is an application programming interface (API). It describes a set of standard Java class libraries that access
★
● Jump without changing the address bar-server jump
● Jump immediately after the jump statement is executed-the subsequent code is no longer executed● Note: If you use forward redirection, you must release all resources before the redirection.
●
Appendix: all source code in this article
Listing E
//////////////////////////////////////// ////////////////////// PieColors class manages the colors used in the pie chart//////////////////////////////////////// ////////////////////Class
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.