Today, I encountered this problem and thought that the unbind ("hover") could be done directly, but failed. I found a lot of online is not very correct, and finally I saw the correct method on a foreigner's blog, now share, the original address http:
Java codeVar Imgvalue;Var Count = 13; // number of imagesVar Imgs = new Array (Count );Var ImgLoaded = 0; // Pre-load the imageFunction preLoadImgs (){Alert ('wait a moment before loading the image ......');For (var I = 0; I Imgs [I] = new Image
JSP nine implicit objects
Request
Response
Config
Application
Exception
Session
Page
Out
PageContext
Out implicit object
The out implicit object is used to send text data to the client.
The out object is returned by calling the getOut method of
JSP tag
JSP tags are also called Jsp Action elements. They are used to provide business logic functions on JSP pages, avoiding the difficulty of maintaining Jsp pages by writing java code directly on JSP pages.
Common JSP labels
tag
the tag is
It mainly records the access times and total access times of a single page.
/// // Index. jsp /////////////////////////////////
Home Page
1
Integer count = (Integer) application. getAttribute ("count ");
If (count = null ){
Count = 0;
}
%>
2
Parameters passing between JSP pages is a feature that is frequently used. Sometimes, parameters passing between multiple JSP pages are required. The following describes the implementation methods. (1) Add For example, directly passing parameters
In jsp, the action command is used to set the JavaBean attribute. There are four formats. In this method, "*" indicates that the JavaBean attribute is set based on all parameters passed in the form. The passed parameter value must be consistent
Html code1 ..2.3. First, introduce tags4.5. 6.7. Then, use tags to format the date data.8.9. 10.11.12.13. in addition, you can use SimpleDateFormat current time:
From AlecRichard's Blog
1. Create a new project and add a package under the src folder, for example, tianaoweb.com;
2. Add a class to the package:
Package com;Public class test {Public String sd (){Return "sd ";}}
3. introduce it at the beginning of the default homepage
Type 1: struts1.2 looping element. name indicates the result set. Reference tag library [Java]$ {x. u_id} $ {x. u_name} $ {x. u_sex} modify Delete
Type 2: struts2.0 looping element. Note: value is the result set. Reference the tag library
I,
Page built-in object Introduction
The page object is similar to the this pointer in Java programming, that is, the current JSP page itself. Page is the Object of the java. lang. Object Class. Page objects are not frequently used in actual
The j2ee specification provides a specification for jsp Compilation: the first step is to compile an xml file, and the second step is to compile the xml file into a java file.Example: test. jspInt a = 1;Private String sayHello () {return "hello ";}%>
1. a Jsp page is a common text file consisting of HTML statements and embedded JAVa code. The JSP page file extension is. jsp.
2. Both jsp and Servlet can develop dynamic web resources, but the two are different. servlet is used as the Controller
Summary of the process of passing JSP page parameters!Transfer Process:
1. if you click to connect to the Jsp page, the transfer process is xxx. action request --> action --> Jsp. You must use action before entering the jsp page. Therefore, the
JSP TechnologyJSP OriginIn many dynamic web pages, most of the content is fixed, and only some content needs to be dynamically generated and changed.If the Servlet program is used to output webpages with only some content that needs to be
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