|
|
|
-
安装 -
UploadBean
是100%的JAVA/JSP/Servlets 上载组件。
在servlet engine上安装UploadBean点击
[普通]
安装。
[WAR]
存档文件使安装UploadBean更为简便。
这种方法需要支持SERVLETS 2.2+ API
或J2EE1.2+的应用服务器。 看安装说明.
如果有问题,请先阅读[常见问题解答]
如果问题仍不能得到解决请登陆我们的在线JSP论坛
。
| FAQ |
- I
get a 404 HTTP error when running SimpleUpload.jsp
?
Check that ExceptionHandler.jsp file is in the same
directory as SimpleUpload.jsp.
- I
get JSP Exception when running SimpleUpload.jsp ?
SimpleUpload sample stores uploaded files under a
folder. If this folder doesn't exist then UploadBean
will try to create one. It will fail if the servlet
engine doesn't have Read/Write access. Pay attention
to use / or \\ file as separator too.
- I
get "uploads.zip not found" when running
MultipleUploads.jsp ?
MultipleUploads sample stores uploaded files under
a ZIP archive. If this archive doesn't exist then
UploadBean will try to create one. It will fail if
the servlet engine doesn't have Read/Write access
on this archive or on the parent folder.
- I
can't upload ZIP files with MultipleUploads.jsp ?
Check the blacklist parameter in MultipleUploads.jsp
sample.
- I
can't upload a big files (> 1MB) with MultipleUploads.jsp
?
Check the filesizelimit parameter in MultipleUploads.jsp
sample.
- How
to get StackTrace from ExceptionHandler ?
Right-click and view HTML source, full StackTrace
is in HTML comments.
- Is
there any lock for ZIP store access ?
Yes, ZIP archive access is done through a synchronized
Archiver class. There is only one instance of Archiver
(singleton).
- Is
there any SQL script to create table for UploadBean
+ database store ?
Yes,
UploadBean has been tested under Oracle8i/9i (upload_oracle.sql),
IBM DB2 UDB 7.2 (upload_db2.sql)
and MySQL 3.23.51 (upload_mysql.sql).
- DatabaseUpload.jsp
returns an Exception ?
Check
that you've made modifications to <jsp:useBean
... /jsp:useBean> in DatabaseUpload.jsp that suits
to your database configuration (Driver, URL, login,
password). Check your JDBC driver is in CLASSPATH
too.
- DatabaseUpload.jsp
hangs with Oracle ?
Check you're using LONG RAW and not BLOB in your Oracle
upload table. For BLOB support try the OracleBlobDBStore
add-on.
- How
can I check or download a file uploaded in database
?
We provide another 100% JAVA component : Download4J
that downloads files from any folder, ZIP archive
or Database.
- Should
I use COS or STRUTS multipart parser ?
UploadBean
uses COS as default one but STRUTS one is really good
too.
Try this
link to learn more about pros and cons of multipart
parsers.
- How
to add a progress bar when file is uploading ?
You
have to select Struts parser and implement your own
UploadListener. You could find a ProgressStatus sample
in our UploadBean add-ons
section.
|
|
|