First, the application background
The JSP gets the list of the request in the servlet and the data in the list is assembled into XML. The following code appears as XML in the eclipse's built-in browser, no problem.
[Java]/*** News servlet* @author
This article for everyone to introduce the use of AJAX Dynamic transfer JSP page, JS Jax writing, using ID to identify the delivery of objectsAjax Dynamic Delivery page, JS Ajax writing, using ID to identify the delivery object For example: Now
Today, write code encountered a problem, in the JSP page through the form of the Select Tag Value, form submitted to its own page, and then through the Request.getparameter () method to get the value
The test code is as follows (file name:
To simplify the process of Web page development,JSP provides some hidden objects that are implemented and managed by the container, which can be used directly in JSP pages without the need for JSP page writers to instantiate them. In JSP pages, you
To avoid having to do with HTTP 404 errors in the future, decide to write down every time you encounter this type of error in case of a query.
Because no struts2 before, can normal access to the application directory files, after configuration
JSP exception occurs when application deployment runs, when using the JSTL library: according to TLD or attributes Directive in tag file, attribute value does not accept any expressions, perhaps because of the use of the JSP2.0 version, while not
The time in the database is read by El in JSP, how to format the format displayFirst import the label "/>value=" ${viewkq.srq} "the date value taken by the EL expression Pattern: The date format of the output, so that you can format the timedate
Today to build the environment eclipse, a simple JSP page appears with this error: The superclass Javax.servlet.http.HttpServlet is not found on theJava Build path
.The reason is that the Tomcat runtime related classes are not being added to the
Two mechanisms to save the state of a user (Cookie Session)1.Cookie (Web server saves text messages on the client)1.1 Effects:1. Tracking for a specific object2. Save user's web browsing history and habits3. Simplified login operation1.2
1. Include actions/ include directivesInclude directive syntax: Include action syntax: The difference between include actions and include directives:
Include directives
Include action
Syntax format
JSP expression : Outputs the computed result of a Java variable or expression to the client similar to JSP script fragment : One or more Java program code nested in =18) {%>AdultMinorOGNL Object Graph navigation language, is an expression language,
JSP expression Language ElDisplay results in JSP pages Jsp:usebean and jsp:getproperty two elements lengthy and clumsyJsp:getproperty only supports access to simple bean propertiesUsing the JSP ELThe property attribute of the can only access the
I. INTRODUCTION of 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.The three directives are defined in
1. IIS is used for ASP
Program But what about JSP and PHP? The easiest way to think of it is to install Tomcat in JSP. The default port of Tomcat is 8080. The successful page after the default installation is http: // 127.0.0.1: 8080/index. JSP;
new document
Servlets filter is newly added to the servlet 2.3 specification. It intercepts the requests submitted by the user from the client and runs when the required resources are not reached. It operates requests from the client, intercepts
I. Basic concepts:
1. Tag ):
A tag is an XML element. A tag can simplify and maintain a JSP webpage, and supports multiple language versions for the same JSP file. Because tags are XML elements, their names and attributes are case sensitive.
2. Tag
In JSP, the check box is sent to the background
The front-end selects multiple options on the JSP page and uploads these values to the servlet to complete the addition of the class course.In JSP, multiple selections are implemented using
Software to be prepared before installation:
1. jdk-1.6
2. tomcat-5.5.28
3. myeclipse 7.0
If you have installed the JDK environment, you only need to install Tomcat.The software is as follows:Jdk-1.6 --:
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service