JSP 3 commands and JSP 3 commandsThree commands: page, include, and taglib. Page command:
* Import: equivalent to the import Statement * PageEncoding: Specifies the encoding of the current page. If pageEncoding is not specified, the default value is contentType. If neither pageEncoding nor contentType is specified, the default value is iso-8859-1 * contentType: equivalent to calling response. setContentT
JSP directivesJSP directives (Directive) are designed for the JSP engine, and they do not directly produce any visible output, but simply tell the engine how to handle the rest of the JSP page.Basic syntax format for JSP directives:Three instructions:
page directive
Include directives
taglib directive
The js| tutorial
Also, you can write multiple properties in one statement:
There are two main types of directive:
page, which allows you to do something like import classes, define a servlet superclass (superclass),
Mso-hansi-font-family: "" "and so on;
Include, which allows you to insert files into the Servlet class (when the JSP file is translated as a servlet).
First,
PrefaceSince the JSP 1.1 specification, JSP supports the use of custom tags in JSP. The wide use of custom tags has resulted in repeated definitions by programmers, this has led to the birth of JSTL (JavaServer Pages Standard Tag Library.JSTL is used in work, but the Chinese documents about JSTL cannot be found on the Internet, so this article is available.JSTL I
components provided by JSP technology are based on JAVABEANSTM technology or JSP tag library. It can be seen that there are similarities, but the difference is obvious.
1) JSP Tag Extensibility
Although both ASP and JSP use tag and scripting technology to make Dynamic Web pages,
After Sun officially released JSP (JavaServer Pages), this new Web application development technology quickly caught people's attention. JSP provides a unique development environment for creating highly dynamic Web applications. According to Sun, JSP can adapt to the market, including Apache WebServer, IIS4.0 and other 85% of the server products. Even if you are
how to handle the rest of the JSP page.
(1) page instruction. The page directive is used to define the various properties of the JSP page, regardless of where the page instruction appears in the JSP page, it is a JSP page.
[language= "Java"]///To specify that the current
Www.2cto.com: an old article inSince its launch, JSP programming language has been widely used due to its fast, platform-independent, scalable, and object-oriented features, more and more manufacturers have developed a variety of support platforms, such as IBM WebSphere and BEA's WebLogic. More and more websites have begun to build their own platform architecture in the
What is jsp (the preferred choice for SUN Enterprise Applications) tag pulling? If you know html and xml (standardization is getting closer and closer), you should know the tag. any tag-based language (such as html) must be between Note that all jsp (preferred for SUN Enterprise Applications) Labels have a prefix, e.g. star in So there is no need to put existing
First, JSP Technology overview
After Sun officially released JSP (JavaServer Pages), this new WEB application development technology quickly caught people's attention. JSP provides a unique development environment for creating highly dynamic WEB applications. According to Sun, JSP can adapt to the market, including Ap
design pattern, so the model and view are clearly separated. In addition, Java is an object-oriented language that supports inheritance and is easier to reuse code than JSP scripts. In struts, the code in Listing 4 can be transplanted from the JSP page to the execute () method of the action class.In addition, we can also define a basic class that inherits the st
JavaServerPages (JSP) is a Java-based cross-platform web development language. JSP is compatible with Microsoft's ActiveServerPages, but it uses HTML-like volumes and Java code segments instead of VBScript. When the website server you are using does not provide local ASP support, that is, Apache or Netscape server, you can consider using
First, JSP Technology overview
After Sun officially released JSP (JavaServer Pages), this new WEB application development technology quickly caught people's attention. JSP provides a unique development environment for creating highly dynamic WEB applications. According to Sun, JSP can adapt to the market, including Ap
tag library. It can be seen that there are similarities, but the difference is obvious.
1) JSP Tag Extensibility
Although both ASP and JSP use tag and scripting technology to make Dynamic Web pages, JSP technology enables developers to extend the application of JSP tags, JSP
-oriented language that supports inheritance and is easier to reuse code than JSP scripts. In struts, the code in Listing 4 can be transplanted from the JSP page to the execute () method of the action class.In addition, we can also define a basic class that inherits the struts action class. Its execute () method contains the code in Listing 4. By using the class
display a protected page in the browser under any circumstances. This example shows how to properly handle exit issues without additional training.
To make the code more concise and effective, some redundant code can be removed. One way is to write the code in Listing 4 to a separate JSP page, which can be referenced through the tag
Exit implementation under Struts Framework
Another alternative solution compared to directly using
clearly separated. In addition, Java is an object-oriented language that supports inheritance and is easier to reuse code than JSP scripts. In Struts, the code in Listing 4 can be transplanted from the JSP page to the execute () method of the Action class.In addition, we can also define a basic class that inherits the Struts Action class. Its execute () method c
js| Notes | User Registration
1. This is a JSP instance, consists of four JSP pages, processing user registration and login Information 2. The first is login.jsp, the code is as follows:<html><center><form method=get action="http://127.0.0.1:8000/jsp/test.jsp">username<input type=text name=username><br><br>password<input type=password name=pass><br><br><input typ
I. JSP technology OverviewAfter Sun officially released JSP, this new Web application development technology soon attracted people's attention. JSP provides a unique development environment for creating highly dynamic Web applications. According to Sun, JSP can adapt to 85% of server products on the market, including A
HelloWorld program instance for getting started with JSP, helloworld for getting started with jsp
This article describes the HelloWorld program for getting started with JSP. We will share this with you for your reference. The details are as follows:
Here is the first JSP-HelloWorld! Every "First Love" is mysterious, re
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.