JSP normal printing is very simple, there are many ways, you can use window. Print () This built-in method, you can also use the component webbrowser, you can also use a third-party component such as scriptx to achieve. The default A4 format is
The final function of this class is to execute a function at a certain point in time every day (such as every night.
First, introduceJava timer (Java. util. Timer)Scheduled execution of scheduled tasks is enabled. By setting the timer interval,
1. What built-in objects does JSP have? A: JSP has the following nine basic built-in components (which can correspond to the six internal components of ASP ): Request client request, which contains parameters from the get/POST request Response
Install Tomcat
Tomcat is a network service software developed by Apache Foundation to support JSP (Java Server Page. The tomcat version in the Ubuntu software library is outdated, but the installation is relatively convenient:
Sudo
JSP File Download demo
1. Front-end
2. Background
1. Front-end
Http://www.javaeye.com/topic/446631
Why download files in JS mode? Because dynamic computing is required based on your clicks and selections. If you directly
Cookie introduction and JSP method for processing cookies
1. What are cookies?
As we all know, the browser communicates with the Web server over HTTP. When a user sends a page request, the web server simply responds
Yes, and then close the
Use APACHE-commons-fileupload to write a JSP file to be uploaded
You need to download the fileupload and beanutils packages. The Code is as follows.
String mkdir (string path ){
String MSG = NULL;Java. Io. File dir;
// Create a
Yesterday, I spent a lot of time figuring out the operating principles of JSP. In general, JSP is the encapsulated servlet. If you do not believe this, go to the following link:
First, you have to figure out why the file with the suffix jsp can run.
Jetspeed is an open-source enterprise information portal (EIP) implementation, using Java and XML. you can use a browser to access the information portal set up by jetspeed through mobile phones or other devices using the WAP protocol. jetspeed
Paging notice knowledge points:
(1) rolling result set of jdbc2.0.
(2) http get request.
I. scrollable result set
Connection con = drivermanager. getconnection ();
Preparedstatement stmt = con. preparestatement (SQL, resultset. type_forward_only,
Document directory
1. attributes need to be added to the original hellotag. java.
2. Add the attribute description to the TLD file:
I. Introduce tags
In fact, we have used several tags in JSP, such as and . These tags are pre-defined. If we
One of the first methods is to use the urlconnection of java.net to capture the JSP on the server for caching. However, I think this is too easy to understand, why access through HTTP. so I thought of another way to control the output of the JSP
The main content I discussed earlier is servlet. In fact, my intention is to only discuss servlet. However, since JSP is an indispensable part of Java Web development, there is no harm in learning more. In the previous content, we found that when
JSP case analysis (1)-Online Voting System-1-deployment, installation, and debugging
Source code: http://download.csdn.net/detail/flyuniverse_shell/4136005
Note: This code is simple and clear, and is a good example of learning.
1. Modify the Tomcat
I used jcaptcha for the verification code when I made an opencms form. After a brief look, I thought it was pretty good. I 've collected it. Today I 've improved a little bit. Hey hey :)
Use the Open Source component jcaptcha for jsp color
Reprinted fromHttp://www.cnblogs.com/cjt-java/archive/2012/09/01/2666696.html
The project needs to implement a refreshing batch file upload function. After careful research, we found that the Uploadify plug-in provided by JQuery is very good, but
Disable cache settings on jsp pages
1. The client cache should include the following content in :Or
2. Disable caching on the dynamic web page of the server. Add a script similar to the following:Response. setHeader ("Pragma", "No-cache
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