Attempting to make the JSP version work

Upload core product.
Post Reply
ron91351
Posts: 10
Joined: Sat Mar 22, 2008 7:10 am

Attempting to make the JSP version work

Post by ron91351 »

I have been able to successfully use the PHP version of the JFileUpload applet.

http://www.jig4u.com/JFileUpload/applet_http_php.html

But, I am not able to get the JSP version to work.

http://www.jig4u.com/JFileUpload/applet_http.html

Here is the error that shows up:

Java Plug-in 1.6.0_05
Using JRE version 1.6.0_05 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Administrator
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
Mar 26, 2008 9:14:49 AM jfileupload.transfer.client.http.HTTPUploadTransfer E
INFO: Upload (POST) started : C:\Documents and Settings\Administrator\My Documents\ifx-crashlog.txt
Mar 26, 2008 9:14:49 AM jfileupload.transfer.client.http.HTTPUploadTransfer E
INFO: Upload Status code = 500
Mar 26, 2008 9:14:49 AM jfileupload.transfer.client.http.HTTPUploadTransfer run
INFO: Upload failed

When I try to execute http://www.jig4u.com/jspupload/process.jsp, I get the following error:

org.apache.jasper.JasperException

Check FileUploadBean properties in your JSP.
For folder store check: <jsp:setProperty name="upBean" property="folderstore" value="c:/uploads" />

Here is the code in the process.jsp:

<% String directory = "/home/content/r/o/n/ron91351/html/uploads/"; %>
<% String tmpdirectory = "/home/content/r/o/n/ron91351/html/uploads/tmp/"; %>
<% boolean createsubfolders = true; %>
<% boolean allowresume = true; %>
<% boolean allowoverwrite = true; %>
<% String encoding = "ISO-8859-1"; %>
<% boolean keepalive = false; %>

<jsp:useBean id="upBean" scope="page" class="jfileupload.jspupload.FileUploadBean">
<jsp:setProperty name="upBean" property="folderstore" value="<%= directory %>" />
<jsp:setProperty name="upBean" property="parsertmpdir" value="<%= tmpdirectory %>" />
<jsp:setProperty name="upBean" property="filesizelimit" value="8589934592" />
<jsp:setProperty name="upBean" property="overwrite" value="<%= allowoverwrite %>" />
<jsp:setProperty name="upBean" property="dump" value="true" />
</jsp:useBean>

Let me know if you need more info and thanks for the help,
RJ

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Attempting to make the JSP version work

Post by support »

This error means that you rJSPUpload is not installed correctly.
Installing JSP files is not enough. You must have all JARs files under WEB-INF/lib installed into your web application. Did you follow install instructions into readme.txt ?

Post Reply