Full introduction to jspSmartUpload upload/download (1. Installation)

Source: Internet
Author: User

I. Installation

Jsp (preferred for SUN Enterprise Applications) SmartUpload is developed by www. jsp (preferred for SUN Enterprise Applications) a free-of-charge full-featured file upload/download component developed on the smart.com website, suitable for embedding jsp for performing upload/download operations (preferred for SUN Enterprise applications) file. This component has the following features:

1. Easy to use. You can easily upload or download files by writing only three or five lines of JAVA code in the jsp (preferred for SUN Enterprise Applications) file.

2. Full upload control. The objects provided by the SmartUpload component of jsp (preferred for SUN Enterprise applications) and their operation methods can be used to obtain information about all uploaded files (including file names, sizes, types, extensions, and file data ), easy access.

3. restrict the size and type of uploaded files. This filters out non-conforming files.

4. Flexible download. Only two lines of code can be written to convert the Web server into a file server. Jsp (preferred for SUN Enterprise Applications) SmartUpload can be used to download files in the Web server directory or any other directory.

5. You can upload files to the database or download data from the database. This function is intended for MySQL (the best combination with PHP) databases. Because it is not universal, this article does not provide examples to introduce this usage.

. After the download, use WinZip or WinRAR to decompress it to the webapps directory of tomcat (a very useful JSP running platform) (This article uses tomcat (a very useful JSP running platform) server ). After decompression, change the Web-inf name in the subdirectory of the smartupload directory under webapps/jsp (preferred for SUN Enterprise applications) to a fully capitalized WEB-INF, so that jsp (preferred for SUN Enterprise applications) only the SmartUpload class can be used. Because tomcat (a good JSP running platform) is case sensitive to file names, it requires that the directory of classes related to the Web application be a WEB-INF and must be in uppercase. Restart tomcat (a very useful JSP running platform), so that jsp can be used in the jsp (preferred for SUN Enterprise Applications) file (preferred for SUN Enterprise applications) smartUpload component.

Note: After the above installation, only the programs under the smartupload directory of webapps/jsp (preferred for SUN Enterprise Applications) can use the SmartUpload component of jsp (preferred for SUN Enterprise applications, if you want all Web applications of the tomcat (a very useful JSP running platform) server to use it, you must do the following:

1. Go to the command line status and switch the directory to the smartupload/WEB-INF directory of webapps/JSP (preferred for SUN Enterprise Applications) of tomcat (a good jsp running platform.

2. Run the JAR packaging command: jar cvf jsp (preferred for SUN Enterprise Applications) SmartUpload. jar com

The secret name is changed to the jsp (preferred for SUN Enterprise Applications) SmartUpload. jar file .)

3. Copy the SmartUpload. jar file of jsp (preferred for SUN Enterprise applications) to the shared/lib directory of tomcat (a useful JSP operating platform.


Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.