1. Download the source code of the jspsmartupload project. Http://www.zhenhua.org/article.asp? You can download the address id = 380. Decompress the downloaded source code to the webapps folder under the Tomcat directory, enable tomcat, and access
If you directly useJava ServletsYou will have to process HTTP input and HTML output in the Java class.Java programmingExperience to build complex applicationsProgram. The addition of JSP allows you to distinguish the HTML expression logic from the
This action is used to dynamically define an XML tag. can contain and .
It has only one attribute name.
For example:
An empty element is generated after execution:
Michael
James is the sales manager
After execution:
1. Differences between calling JS events:
The JS event parameter of the JSP tag can be a tag, but the JSF tag cannot.
Input
Type
= "Text"
Onkeyup
= "Setsearch ('
# {Userselfaction. selfinfo. spacehost }"
/>
')"
Value = "query"
Source: Introduction to configuration in various forums: scum updated: 2008/08/31
---------------- 1. Development Environment configuration ----------------
1.1 download j2sdk and tomcat: J2sdk:
Http://java.sun.com/j2se/
Download Windows
Statement: This article is an article from the blog site. When you query the relevant information, you will see the same results... It should have been seen, but I did not identify the true and false, so I copied it... Very speechless... Again, I
The current request can be forwarded to a static resource, JSP page, or servlet at runtime. The requested resource must be in the same context as the jsp request.
This action will terminate the execution of the current Ye Mi ang. If the page
1. Tomcat
It not only supports running Servlet and JSP, but also features commercial Java Web application containers. tomcat has become one of the best choices for developing Enterprise Java Web applications.
2. Tomcat Structure
The Tomcat server
If you are using a container that complies with JSP 1.2/servlet 2.3, such as Tomcat 4.x or higher, you can use the absolute path in the taglib command of the JSP page instead of the web. specify the taglib element in XML.
You still need to declare
Recently, I received the source code of a project. After the deployment, I opened the page and found that the El expressions on the JSP page were not parsed and displayed as they are.
I searched the internet for the reason. It turned out to be a
Request;
Abstruct string getattribute (string name) {}// return the attribute value of the specified name
Abstract void setattribute (string name, object) {}// Replace the value
Abstract enumeration getattributenames () {}// obtain the names of all
Basic steps:
1. First write the class, extends tagsupport class, and rewrite the method you need.
(Note: If you inherit the simpletagsupport class, you must put all the processing code in the dotag () method)
2. Configuration
Write a TLD file and
Note: before learning this tutorial, complete the configuration of the servlet development environment.
I. file organization
First, let's take a look at the dynamic Web project directory structure created in Eclipse:
Important directory
This article tries to use a simple example to show you how to use JSP to call Javabean to dynamically generate a bar chart on the webpage. The following code is successfully tested on Windows. The Web application server uses Allaire jrun3.0.Step 1:
Recently I have seen many forums that there are only three points:
1. In a static webpage, add />. But the problem is that this only modifies the content encoding that is passed to the browser after the HTML file is compiled, and still does not
title
author
email
Node node = (node) pagecontext. getattribute ("nodevalue ");
Property titleprop = node. getproperty ("title ");
%>
">
Use the node variable in foreach:Use to set the variable "Node" to pagecontext, and
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