I often see JSP beginners asking how to configure JSP, Servlet, and bean in Tomcat. So I summarized how to configure JSP, Servlet, and Ben in Tomcat, hoping to help beginners.
I. Development Environment Configuration
Step 1: Download j2sdk and tomcat: To the sun official site (http://java.sun.com/j2se/1.5.0/download.jsp) download j2sdk, pay attention to download
First, JSP actionActions are special tokens that enable the implementation of multiple lines of Java code through an action tag. Ability to insert files dynamically, Reuse JavaBean components, guide and have a page, and more.Unlike the action element and the instruction element, the action element is run dynamically at the client request and may be run once per client request, while the instruction element is compiled and run at compile time, and it i
The last component of the Js| object that is related to the JSP syntax is called an internal object. Within the JSP small instruction file, you can access these internal objects to interact with the servlet environment that performs JSP Web pages. Many of the access to internal objects should be simplified. However, these are examples, their access is acceptable,
Introduction: This article is the first part of the new JSP Best Practices series, which describes the JavaServer Pages include mechanism. Follow the Java programming expert Brett McLaughlin Learn how to use include to add static header and footer files to your Web site or Web application page.
Welcome to the latest best practices series in the Java area. If you've seen a series of previous articles, you'll know that best practices are designed to gi
JSP basics and jsp Basics
JSP is the abbreviation of Java Server Pages, that is, the Server-side Java page.
There are three methods to annotate JSP:
1. HTML comments,
2. JSP comment,
3. Java Script annotation. Three Java annotations are used in
JSP instruction Description: 1, The JSP instruction is used to tell the JSP engine to interpret the conversion parameters of the jsp, they do not produce output information, only during the translation and compilation of the JSP Function. 2,
instruction .page directive , import is a property of the page directivescriptlet, Inside is pure Java code, need semicolon endexpression , the expression does not end with a semicolon; You must never use a method with a return type of void as an expressionThe JSP is transformed by the Web container and a servlet is generated:The contents of the scriptlet and expressions in the JSP are placed in the servlet
1. Simple grammarExpression Language (EL) is added to JSP 2.0 specification. The purpose of EL is to produce scriptless JSP pages. The syntax of EL in a JSPs is as follows:${EXPR}Here expr Specifies the expression itself.(1) The two commonly used operators in a JSP El are: "." and "[]".The most common operators in JSP
Functions and usage of nine built-in JSP objects, and nine built-in jsp objects
A total of nine such objects are pre-defined in JSP: request, response, session, application, out, pagecontext, config, page, exception1. request object javax. servlet. http. HttpServletRequest
The request object represents the request information of the client and is mainly used to
Jsp: useBean Action usageI. Syntax:Id = "beanInstanceName"Scope = "page | request | session | application"{Class = "package. class" |Type = "package. class" |Class = "package. class" type = "package. class" |BeanName = "{package. class | }{/> |> Other elements}This action enables you to load a JavaBean into a JSP page. This is a very useful capability because it enables you to use reusable JAVA classes with
1. Simple grammarExpression Language (EL) is added to JSP 2.0 specification. The purpose of EL is to produce scriptless JSP pages. The syntax of EL in a JSPs is as follows:${EXPR}Here expr Specifies the expression itself.(1) The two commonly used operators in a JSP El are: "." and "[]".The most common operators in JSP
JspLife cycleThe key to understanding the underlying functionality of the JSP is to understand the life cycle that they follow.The JSP lifecycle is the entire process from creation to destruction, similar to the servlet life cycle, except that the JSP life cycle also includes compiling the JSP file into a servlet.Here
Java Web-based JSP summary and Java Web JSP Summary1. Overview
A JSP file is a file formed by combining the three commands, nine objects and JSP expressions with HTML statements. Its essence isServlet.Java code + HTML statements.
2. Operating Principle
When each JSP page i
The ultimate solution for JSP Chinese garbled problem, and the ultimate solution for jsp
Reprinted from: http://www.cnblogs.com/beijiguangyong/
Http://www.cnblogs.com/beijiguangyong/archive/2012/03/31/2437124.html
Before introducing the methods, we should first understand the specific problems. The JSP Chinese Garbled text discussed in this blog has the following
Java basics-JSP (2), java basics jsp
1. JSP implicit object Overview
To simplify the compilation of jsp expressions and script snippet code, JSP provides a total of nine pre-defined variables, also known as implicit objects or built-in objects.
The Servlet Source code genera
Original: http://blog.csdn.net/mingxunzh/article/details/4627185If you use relative paths in a JSP, you may have problems.Because of the "relative path" in the Web page, he is looking for resources relative to "URL request Address".What does it mean by this sentence?As an example:If we have a project: MYAPPUnder this project, there is a JSP folderThis folder includes the following:login.jsp//Landing pageREG
JSP implicit object (1), jsp implicit object1. Initial appearance of JSP implicit objects;
(1) There will always be nine hidden objects during the interview, which will be described in detail below;
(2) In JSP pages, information such as request requests and response responses are often processed. to simplify the progra
The advantage of JSP is to separate the business logic processing from the Web's UI work. A JSP page inserts a number of JSP elements into a normal web page that will output dynamic text based on different requests.The JSP container is responsible for translating the JSP fil
js| Note 1 Using JSP technology, a user can send an HTTP request to an executable program instead of a static HTML file. The server will run this qualified program immediately, respond to user input, return the processing results to the client, or make changes to the records of the data. With this model, it is possible to interact effectively between the server and the customer.
2 JSP technology is: the use
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.