Javaweb review article 7 jsp and javaweb Article 7 jsp1: Why does JSP exist?
Jsp full name (java server pages) is called a java server Page in Chinese. In Servlet, we found that Servlet can generate dynamic pages, but we have written a lot of html tags in Servlet, in addition, in Servlet, We have to mix a large number of static display content and dynamic product
After the installation, we'll discuss the syntax of the JSP. If you're lazy, you can download the grammar card and if you're unfamiliar with Java programming, you might want to refer to the Sun's manual; However, the site creator should not do much Java development. In addition to a few function calls, the Java program code that appears on your JSP page should minimize it;
With that in mind, let's take a lo
js| notes
The 1.JSP Tag library (also called a custom library) can be viewed as a set of methods that generate xml-based scripts, which are supported by JavaBeans. Conceptually, a tag library is a very simple and reusable code construct. It can greatly simplify the code you enter into various entry boxes in the page (such as code: 2. The tag library (tag libraries) provides a simple way to build reusable blocks of code. But unlike COM and Java EE, you
After the installation, we'll discuss the syntax of the JSP. If you're lazy, you can download the grammar card and if you're unfamiliar with Java programming, you might want to refer to the Sun's manual; However, the site creator should not do much Java development. In addition to a few function calls, the Java program code that appears on your JSP page should minimize it;
With that in mind, let's take a l
JSP instruction elements: Page instruction, include instruction, and taglib instruction
1. Directive elements: controls the generated servlet structure.
JSP commands are used in the "conversion phase" to provide information about the entire JSP page, affecting the overall structure of the servlet generated by the JSP p
Basic Syntax of JSP learning notes and jsp learning notes
Jsp page element structure
The jsp page consists of commands, comments, static content, expressions, small scripts, and declarations.
Jsp commands
Page command: Usually located at the top of the
L JSP template Elements
The HTML content on the JSP page is called a JSP template element. The JSP template element defines the basic skeleton of a webpage, that is, the structure and appearance of the page.
L JSP expression
JSP s
Summary of JSP basic statement usage and JSP statement usage
This example describes the usage of JSP basic statements. Share it with you for your reference. The details are as follows:
1> JSP commands
JSP commands (Directive) are used to communicate with the
Here about the Database tutorial connectors please go to http://www.111cn.net/asp/2/072e3ed8ee1720d343f23b83befb7546.htm viewCall OPENDB ()Rs.Open sql6,conn,1,1Do as not rs.eof%>&table_s= Hot_lm "target=" _blank "class=" prodcut "> Special Report
JSP Question 1. What built-in objects does jsp have?
A: JSP has the following nine basic built-in components that correspond to the six internal components of ASP ):
Request client request, which contains parameters from the GET/POST request
Response returned from the response webpage to the client
The pageContext page is managed here.
Session-related session Per
JSP static import and dynamic import, jsp static ImportJSP static import (JSP command mark include)
When a JSP page is requested for the first time, it is translated into a Servlet Java file by the JSP engine and then compiled into a bytecode file for execution.The
Chapter 1 Basic JSP syntax and chapter 1 jsp syntaxJsp page element structure
The jsp page consists of commands, comments, static content, expressions, small scripts, and declarations.Jsp commands
Page command: Usually located at the top of the jsp page. The same page can have multiple page commands.
Include command: e
How can a successful Jsp programmer learn JSP? -- Linux general technology-Linux programming and kernel information. The following is a detailed description. A common error is to treat JSP as a simplified Java. It is not. (In fact, JSP is a simplified servlets .) Programmers usually try to learn
JSP and jsp tutorials
JSP
I. What is jsp?
JSP, short for Java Server Pages, is a dynamic web page development technology. It uses JSP labels to insert Java code into HTML webpages. The tag is usually ended with "%" starting with "
JSP basic Syntax 1, JSP template elementsThe HTML content in a JSP page is called a JSP template element.The JSP template element defines the basic skeleton of a Web page, which defines the structure and appearance of the page.2. JSP
Nine built-in Jsp objects and nine built-in jsp objects
Nine built-in Jsp objects
Implicit object
Description
Request
After translation, the corresponding HttpServletRequest/ServletRequest object
Response
Corresponding to the HttpServletRespons/ServletResponse object after translation
Session
Corresponding HttpSess
JSP compiled into Servlet (3) JSP compiled Servlet
What is the Servlet class after JSP compilation? What are the mappings between them? When discussing the relationship between JSP and Servlet, Let's first look at what a simple HelloWorld. jsp will look like after it is comp
In the servlet, we have used the JSP page many times, and today we will talk about JSP carefully.First, the conceptThe full name of the JSP is Java Server pages, which can be understood as a Java service-side page, a dynamic web development technique that is essentially a simplified servlet design that implements HTML tags in java. Both the
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.