0

I am using jquery upload file plugin Jquery file upload plugin.

I want to use it with Java not PHP.

Following is my code:

      <af:resource type="javascript">
 $(document).ready(function()
{
    $("#fileuploader").uploadFile({
    url:'GetFileSevlet',
    fileName:"myfile",
        dataType:document,
        showDelete: true,
        showDownload:true,
         statusBarWidth:600,
        dragdropWidth:600,
      maxFileSize:200*1024
    });
});
    </af:resource>
      <af:form id="f1" usesUpload="true" >
     <div id="fileuploader">Upload</div>

I make a servlet, but I am not sure how can I get these files in servlet.

How to get these files in servlet? With this I am able to see upload screen and able to upload file but not able to get these files in servlet from request.

What I am doing wrong?

Bulat
  • 6,869
  • 1
  • 29
  • 52
test55
  • 1
  • 1

1 Answers1

0

You should map GetFileSevlet url to your servlet in web.xml configuration file. Then you should receive data from request object in servlet implementation.

Dmitriy Korobkov
  • 867
  • 1
  • 11
  • 25