JSP program running principle, document structure and simple input/output instance analysis, jsp instance analysis
This document describes the JSP program running principle, document structure, and simple input and output. Share it with you for your reference. The details are as follows:
Objectives:
Master the document structure of Web applications;Master the run
JSP basic syntax and JSP basic syntaxBasic JSP Syntax 1. JAVA code 2 on the JSP page, instructions 3 on the JSP page, and implicit objects on the JSP page (nine built-in objects)Directory 1. JAVA code on the
js| Tutorials | Getting Started JSP (IAVA SERVER pages) is a dynamic Web page production technology developed by Sun Company in the Java language that allows you to separate the dynamic parts of a Web page from the static HTML. You can use tools that are usually handy and write HTML statements in the usual way. The dynamic parts are then embedded with special tags, which often start with "
It will output "Hello World".
Typically, you want to ext
JSP (IAVA SERVER pages) is a dynamic Web page production technology developed by Sun Company in the Java language that allows you to separate the dynamic parts of a Web page from the static HTML. You can use tools that are usually handy and write HTML statements in the usual way. The dynamic parts are then embedded with special tags, which often start with "
JSP Tutorial
It will output "Hell
JSP simple exercise-JSP commands
I. page commands:
When defining the global attribute value of a JSP page, you can use the page command to place it in the header of the page. For example:
Note: The contentType attribute in the page command cannot be specified twice on the same page.
The page directive has many attributes. The attribute enclosed by square bracke
Jsp built-in object, jsp built-inJsp built-in objects are member variables that can be used in JSP page scripts (Java program slices and Java expressions) without being declared and created. The built-in component JSP has the following nine basic built-in components (which can correspond to the six internal components
After the installation, we will discuss the JSP syntax. To be lazy, you can download the syntax card. If you are not familiar with Java
Program Design, you may want to refer to Sun's user manual; however, website creators should not do too much Java development. Java programs that appear on your JSP page except for a few phone calls
Code It should be minimized;
Remember this, now let's take a look at the
Coordination between Servlet and JSP
-- Adjust Servlet and JSP to improve the running performance of your enterprise
By Rahul Chaudhary
Introduction
In this article, Rahul Chaudhary describes the performance coordination Technology (performance-tuning techniques) that can improve Servlet and JSP performance ), therefore, you can use it to improve the performance
JSP action instructions are often used in JSP programming, and unlike JSP directives, it will affect the function of JSP running!1. Include Action instruction:The Include action directive is used to dynamically include a file in a JSP page, so that the program containing the
Nine implicit JSP objects, and nine hidden jsp objects
1. Nine implicit objects in jsp
Request HttpServletRequest
Response HttpServletResponse
Session HttpSession
Application ServletcContext
Config ServletConfig
Exception (used in special cases)
Page this (this JSP page)
Out JspWriter (PrintWriter with buffer)
PageCont
Summary of JSP website development 2, jsp website development 2
With the previous study, I believe that you have some knowledge of JSP. From today on, we have actually started the JSP mode. If you have the HTML Foundation, it is much easier to learn JSP. First,
About nine built-in jsp objects and four scopes, and nine jsp objects
Request Request object type javax. servlet. ServletRequest scope request
Response object type javax. servlet. SrvletResponse scope Page
PageContext Page Context object type javax. servlet. jsp. PageContext scope Page
Session Session object type javax. servlet. http. HttpSession scope session
Ap
js| Tutorials | page
Use JSP forward action in JSP to achieve the page's jump function.
Grammar:
Value= "{parametervalue|
This action allows you to move the request to a different page. It has only one attribute, page. The page should consist of a relative URL. This can be a static value or a value that can be computed at the time of the request, as in the following two examples:
!supportemptyparas]>
Here's
JSP enables user logon, registration, and exit. jsp User Logon
This article describes how to use JSP to Implement User Logon, including user logon, registration, and logout.
1. system use case diagram
2. Page Flowchart
3. Database DesignThis example uses the oracle database
Create user table
Including id, username, password, and email. There are four fields in
1, JSP nine large built-in objects1.1. What is a built-in object?In JSP development, a number of objects, such as HttpSession, ServletContext, ServletContext, Httpservletrequet, are frequently used. It is cumbersome to create these objects every time we want to use them. So when Sun design jsp, when the JSP page is loa
JSP label Programming One, Overview:
To further reduce the Scriptlet code in JSP pages, you can use JSP label programming techniques to achieve the goal
Just as there are many class libraries in the Java language, JSP tags also have tag libraries: Many open source components now implement the
Create a simple logon interface instance Using JSP and a jsp logon interface instance
Now many web projects can use the logon interface. This article describes how to create a simple login interface using JSP and share it with you, as shown below:
Running Environment
For details about eclipse + tomcat + MySQL, refer to the Js
One, page directive:When you define a global property value for a JSP page, you can use the page directive, which is typically placed in the header of the pages.Note: The ContentType property in the page directive cannot be assigned a value two times in the same page.The properties of the page directive are much more, and the attributes enclosed in square brackets "[]" represent optional properties.1, Language:Language defines the scripting language u
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.