PASS Parameters on the parent page (JSP page) to the child page (JSP page)
1. PASS Parameters on the parent page to the Child page
// JavaScript code $. ajax ({type: "POST", uri :".. /student/studentInfo. action ", data: {" date ": date,"
1. advantages of using the window. print () method: support for multiple browsers disadvantages: cancel printing, hide unnecessary printing information, and then display it in a complicated way. You can print the current page
2. Use third-party
1. Descending jump per secondCopy codeThe Code is as follows:2. Use the response. setHeader FunctionCopy codeThe Code is as follows:3. Use meta tagsCopy codeThe Code is as follows:JSP page for automatic jump!1. automatic page Refresh:
Add the
Method 1:Run the openTheIndexPage () method after the page is fully loaded as follows:Copy codeThe Code is as follows: Telecommunications Data Collection System Method 2: It can be the following, but the effect is not as good as method 1.Copy
Test1.jsp page:
Copy codeThe Code is as follows: My JSP 'test1. jsp 'starting page "> test2.jsp
Test2.jsp page:
Copy codeThe Code is as follows:String name = request. getParameter ("name"); // get tomcat's string formatter is ISO-8859-1Byte []
Code snippet in Action
Copy codeThe Code is as follows:Private String epid; // The global variable returns a comma-separated String.Public String getEpid (){Return epid;}
Public void setEpid (String epid ){This. epid = epid;}
Public String edit
Dynamic INCLUDE Usage: Note: It always checks the changes in the contained files. It is suitable for inclusion of dynamic pages and can contain parameters. It can be compiled before processing.Cause: 1. The static include result is to introduce
FileUploadInterceptor: the interceptor is at the 10th position of defaultStack. You can see its name as it is used to process file uploads. For file uploads, you should know: struts2 uses the commons-fileupload component to process file uploads.
Some tables that display information are used in the project. The table header is not fixed and the table content is retrieved from the background instantly. Considering the reusability, I wrote a table template using jsp, you can obtain the List
1. Download NetBean6.1
NetBean6.1 includes the Web servers Tomcat6.0.16 and GlassFish V2. Therefore, after NetBean is installed, these two servers are automatically installed.
2. View Tomcat attributes
In NetBean IDE, open
1. File-> New...-> Web-> double-click the Standard Servlet icon to start the wizard for creating a Standard Servlet.
Specify the Servlet class name as Excel File Servlet, set the package name as bookstore. servlet, and press Next to Next.
2.
The emergence of AJAX as a Web application model has greatly changed the appearance of the server. The typical Web usage mode of the user entering a form on the Web page and clicking the submit button to go to the next link is now transforming to a
Development environment required for compiling Servlet
The basic environment required for Servlet development is JSDK and a Web server supporting Servlet.
1. JSDK (Java Servlet Development Kit)
The JSDK contains the Java class libraries and related
From the early stages of the network, people hope that their network servers will not only display static documents, but also the general Gateway Interface (CGI) expands the server capabilities, however, the cost is that additional processing
Jps commands are introduced in JDK1.5 to facilitate display of javaJVM process information. I used to use
ps -ef | grep java
Query the pid information of the java program, or check whether my appserver is running. Now, you can use jps to
Preface
This document describes how to use Tomcat as the j2ee container and Sqlserver2005 as the database. Struts version 2.3.15.3 and Spring version 3.2.5
Spring Introduction
Spring is also an open-source project under appache. The powerful
The AnnotationValidationInterceptor interceptor is in the defaultStack 17th position and is mainly used for data verification. The interceptor inherits from the ValidationInterceptor interceptor and adds the function of canceling verification using
The filter can add some additional operations before the request arrives at the JSP or Servlet or before the response is returned to the client. If multiple JSP pages and servlets need to perform the same or similar operation, we can extract the
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