First JSP
In fact, JSP simply places Java in an HTML webpage. You can change the extension name of an existing HTML webpage from "".html" to ". jsp", which is the best way to create the first JSP.
You can change the extension name of the
Learn jsp from scratch
0.0.1
Copyright 2008 ding dong
Old cainiao ding dong
If you have any questions or suggestions about this document, please send an email or leave a message.
QQ: 475784337
QQ: 51239192
MSN: lingirl6@hotmail.com
A JSP Element
1. pseudoinstructions2. StatementScripletExpression3. NotesJSP annotation visible to the serverHTML client visibility4. jsp Behavior4.1 declare a JavaBean instance4.2 set one or more bean property values4.3 return the attribute
Most JSP file uploads use open-source projects to simplify processing. Here we list the implementation of the two commonly used jar packages and compare them to illustrate their advantages and disadvantages and the issues that should be paid
Introduction to JSP custom tag Development
Generally, the following two packages must be referenced to develop JSP custom tags:
ImportJavax. servlet. jsp .*;
ImportJavax. servlet. jsp. tagext .*;
First, we need to get a general idea
The include command is a command in the compilation phase. That is, the content of the file contained in include is inserted into the JSP file during compilation. the JSP Engine judges that the JSP page has not been modified, otherwise, it is deemed
. Create a web project testserviceThe directory is as follows:CN -- Test -- service -- impl
2. packages to be importedActivation-1.0.2.jarCommons-codec-1.3.jarCommons-httpclient-3.0.jarCommons-logging-1.0.4.jarJaxen-1.1-beta-8.jarJdom-1.0.jarLog4j-
Counters are essential to websites. Don't underestimate them. Every time the webmaster looks at the rapid growth of numbers on a small counter, it feels really good. Previously, we used CGI and ASP to write counters.
Article A lot. Here, we will
Summary: There are several ways to expose JSP
Code But after a lot of tests, this has an absolute relationship with the Web server configuration. For IBM WebSphere Commerce Suite, there are other ways to see JSP
Source code But I believe it is
Httpsession is similar to the hash table interface. It provides the setattribute () and getattribute () Methods to store and retrieve objects. Httpsession provides a session ID keyword. A client that participates in session behavior stores and
Main Code for uploading files:
Step 1: import the jspsmartupload class to the project.
Step 2: When writing JSP pages, note that when using , do not forget to set the form's enctype, enctype = "multipart/form-data ".
Step 3: Main Code in Servlet
Author: yiwangaffectionate
** Note! **The test results depend heavily on the hardware/software configurations of the machine and vary with the configuration changes. Therefore:This test result is for reference only *
Tested hardware:CPU: Intel PII 3
Servlet and JSP Learning GuideOriginal title of basic information: servlet & JSP: a tutorial Author: (plus) Budi kurniawan Translator: Cui Yi Yu Zhe Jun Yu Li Min series name: Chapter Hua programmer library Press: Machinery Industry Press ISBN: 97871
This is actually very simple, as long as you add the above Code to HTML, it will be OK, the premise is that you have installed a player on your computer, such as RealPlay.
Copy codeThe Code is as follows:
More players and settings are
Taglib instructions
The Taglib command defines a tag Library and the prefix of custom tags.
For example, the tag Library Supported by struts, the html Tag library, the bean tag library, and the logic tag library.
The specific implementation methods
Server Vulnerabilities are the origin of security issues, and most of the attacks on websites by hackers start from finding vulnerabilities of the other party. Therefore, website administrators can take appropriate measures to prevent external
Custom tags)
(Prepared study notes)
Step 1. Create a Tag handler class (Tag Processor class)
Package javax. servlet. jsp. tagext
Develop a label processor class for an empty Body -----> 1) implements Tag 2) extends TagSupport
The method of
1. Create a VM for the old domain name under tomcat
The homepage is index. jsp, And the 404 error page is unfind. jsp.
301 redirection on the home page, facilitating Search Engine Optimization
Response. setStatus (301 );
Response. setHeader
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