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
Syntax:
Example 1
On the client page, the source code is shown:
Example 2
The page call date is:
On the client page, the source code is shown:
Description:
Any valid JSP expressions can be used in annotations. The expression is dynamic. When the user calls the page for the first time or the page is called again later, the expression is assigned a value. After the JSP Engine executes the expressions in
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
We knowJavavirtual machines only knowclassfiles to be run on a virtual machine, you must follow theclassfile format, soJSPcompiled intoservletwill need to be further compiled intoclassfile, but fromJSPfiles toJavafile again toclassfile process need to consider more things, one of the more important is debugging problems, because the syntax is different,JSPHow the logic of a row executesJavafile corresponding to theJVMAn exception or error occurred during execution to findJSPthe corresponding lin
JavaServer Pages (JSP) is a Java-based cross-platform Web development language.
JSP is compatible with Microsoft's Active Server Pages, but it uses HTML-like labels and JavaProgramCodeSegment instead of VBScript. When your website server does not provide local ASP support, that is, Apache or Netscape Server, you can consider using
to establish servlet, which also brings other advantages. Even if you have compiled servlets for web applications, using JSP still has many advantages:
JSP web pages can be easily combined with static templates, including HTML or XML fragments and code that generates dynamic content.
JSP web pages can be dynamically compiled into servlet upon request, so web p
JSP-10-JSTL standard label library, jsp-10-jstl label Library
JSTL (jsp standard tag Library) contains a set of standard tags used to compile and develop JSP pages. It provides users with a script-free environment.
JSTL provides four major tag libraries: Core tag library, International (I18N) and formatted tag library,
Currently, ASP (Active Server Pages), JSP (Java Server Pages ),
PHP (Hypertext Preprocessor ).
Introduction
ASP full name Active Server Pages is a web server development environment that can be used to generate and runDynamic, interactive, and high-performance Web service applications. ASP adopts the script language VB script (Java ScriptAs your development language
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 developers c
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
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 developers c
JSP is a network programming language released by SUN, which is hard to learn (recognized on the Internet) and runs across platforms. high Security and fast operation efficiency. it is widely used by enterprise-level companies and banking and financial institutions.
ASP. in a sense, it should be an ASP version upgrade, but it is not completely upgraded from ASP. NET is launched by Microsoft to resist the ra
different modules, and the key to the problem is how to divide the modules.
MVC (Model-View-Controller) is a software design pattern invented in the the 1980s for SMALLTALK-80 programming language, which is a design method of separating business logic and display interface.
The model part of MVC is responsible for managing the business data of the program, and the View section is responsible for displaying the interface, while the controller (Con
, the network on which the server resides, any one or all of the clients accessing the page, even through DDoS or worm distributed attacks, and may affect the entire Internet. It is often assumed that Java, as a type-safe language with garbage collection capabilities, has a sandbox (Sandbox) mechanism that can magically guarantee software security. And in fact, many low-level security issues that exist in other languages, such as buffering or heap ove
<%@ directive attribute=”value”%>
Also, you can write multiple properties in one statement:
<%@ directive attribute1="value1" attribute2="value2" attributeN="valueN" %>
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 a
Talk about the advantages and disadvantages of asp,php,jsp http://hi.baidu.com/lhyboy/item/f95bac264c38830d72863e41ASP, PHP, ASP, JSP and other mainstream web development language comparisonToday, an article on the mainstream website development language-"ASP, PHP, ASP. NET, JSP
Java Web Learning summary Article 3-elements of JSP pages and Java Web Article 3
Java Web Learning (III)-elements of JSP pages
JSP: Java Server Pages, translated as a Java Server Page. The script adopts the Java language and inherits all the advantages of Java. JSP elements
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
available connection directly. However, the implementation of PHP is really much more convenient than Java, just add a letter, it is easy to implement, Java is a bit troublesome, I configure the connection pool Tomcat took some time, according to official documents, Under the tomcat5.0.28 not configured successfully, on the csdn above, also see a lot of novice sent for help, a lot of configuration is unsuccessful, finally found out, the configuration method can refer to my blog.If you connect t
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.