title: How to write Jersey Multipart webapp, Tomcat Server
body: <p>I've been doing a lot of REST tutorials and enjoying them. Recently, I tried writing a jersey multipart webapp with Netbeans but I can't seem to because it seems something's missing my jersey library.</p>
  
  <p>I downloaded the jersey-multipart.jar file, but still that didn't help:</p>
  
  <pre><code>@Path("/file")
  public class UploadFileService {
  
      @POST
      @Path("/upload")
      @Consumes(MediaType.MULTIPART_FORM_DATA)
      public Response uploadFile(
          @FormDataParam("file") InputStream uploadedInputStream,
          @FormDataParam("file") FormDataContentDisposition fileDetail) {
  </code></pre>
  
  <p>This code is from blog. I'm trying to put it in my webapp, but the @FormDataParam tag and the FormDataContentDisposition class are not recognised. I downloaded the jersey-multipart.jar and that seemed to solve the @FormDataParam tag problem, but not the FormDataContentDisposition class.</p>
  
  <p>I'm using Tomcat 7.0.</p>
  
  <p>How do I go about successfully creating a jersey multipart webapp without any problems? And how come the jersey-multipart jar file isn't included in the jersey library in Netbeans?</p>
  
  <p>Thanks.</p>