0 Replies Latest reply on Jul 17, 2009 2:07 PM by Ingo Wurzer

    Seam context in Servlet

    Ingo Wurzer Newbie

      Hello all together,


      I ve following problem: I want to implement a multiupload feature in my application. So I plugged in a flash file to my side. This requires a Servlet which handle the post request.


      Everything works: the Servlet (... ImageServlet extends javax.servlet.http.HttpServlet {...) and the jsf page and also the Flash part.


      If I debug I step through the servlet until i come to the following postition:




      // Create a factory for disk-based file items
      FileItemFactory factory = new DiskFileItemFactory();
      
      // Create a new file upload handler
      ServletFileUpload upload = new ServletFileUpload(factory);
      
      List<FileItem> items = null;
      try {
          items = upload.parseRequest(req);
      } ...
      



      In the FileItem's are null if I switch on the seam context filter (I need it for picture processing!!)


      <web:context-filter url-pattern="/up/*.xy" />



      If I switch off the seam context filter - I get the FileItem's but not the seam context :-(


      I also tried the web:multipart filter - but nothing changes.


      Thanks a lot for help!!!