manage session for JDownload

Files and folders downloader add-on with resume support.
Post Reply
pratap
Posts: 1
Joined: Mon Jun 11, 2012 7:10 am

manage session for JDownload

Post by pratap »

Hi Dear,
Our Team purchased jfileapplet Premium V2.8, Problem coming: to manage the session.
doing as per below code but not able to download the File.

>>>>>> process.jsp<<<<<<<<<
String directory = "c:/upload";
String tmpdirectory = "c:/upload/tmp";

>>>>>>>File Location<<<<<<<<<<
c:/upload/readme123.txt

<%! String jFileUrl = "/applet/jFiledownload"; %>
<% HttpSession sessionObject = request.getSession();
String sessionid = sessionObject.getId(); %>

<APPLET CODE="jfileupload.upload.client.MApplet.class" JAVA_CODEBASE="<%=jFileUrl%>" ARCHIVE="<%=jFileUrl%>/lib/jfileupload.jar,<%=jFileUrl%>/lib/httpimpl.jar,<%=jFileUrl%>/lib/chttpclient.jar,lib/clogging.jar,lib/download.jar" WIDTH="480" HEIGHT="110" NAME="fileupload">
<PARAM NAME=CODE VALUE="jfileupload.upload.client.MApplet.class">
<PARAM NAME=CODEBASE VALUE="<%=jFileUrl%>/lib">
<PARAM NAME=ARCHIVE VALUE="<%=jFileUrl%>/lib/jfileupload.jar,<%=jFileUrl%>/lib/httpimpl.jar,<%=jFileUrl%>/lib/chttpclient.jar,<%=jFileUrl%>/lib/clogging.jar,<%=jFileUrl%>/lib/download.jar">
<PARAM NAME=NAME VALUE="fileupload">
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">
<PARAM NAME="scriptable" VALUE="true">
<PARAM NAME="url" VALUE="http://3.209.226.227/applet/jFiledownload/process.jsp">
<PARAM NAME="param2" VALUE="relativefilename">
<PARAM NAME="value2" VALUE="true">
<PARAM NAME="item1" VALUE="readme123.txt">
<PARAM NAME="folderdepth" VALUE="-1">
<PARAM NAME="encoding" VALUE="ISO-8859-1">
<PARAM NAME="transferui" VALUE="jfileupload.download.ui.DownloadTransferUI">
<PARAM NAME="resources" VALUE="<%=jFileUrl%>/i18n_bar">
<PARAM NAME="transferuiresources" VALUE="<%=jFileUrl%>/i18n_pane">
<PARAM NAME="mode" VALUE="jfileupload.download.http.HTTPDownloadTransfer">
<PARAM NAME="param3" VALUE="cookiename">
<PARAM NAME="value3" VALUE="JSESSIONID">
<PARAM NAME="param4" VALUE="cookievalue">
<PARAM NAME="value4" VALUE="<%=sessionid%>">


</APPLET>

Please suggest, if any thing missing.

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

Re: manage session for JDownload

Post by support »

You're using cookies for session?

Could you try:
<PARAM NAME="param9" VALUE="cookiesource">
<PARAM NAME="value9" VALUE="jse">
instead of cookiename/cookievalue solution
See:
http://www.jfileupload.com/products/jfi ... ation.html

Post Reply