Re: About Tapestry HttpServletRequest

2009-08-14 Thread sohu
I know tapestry-upload. But it need to submit. What I use is a flash/javascript fileUpload addon(SWFUpload:http://www.swfupload.org/). Files can be uploaded without submit. I set a Tapestry page to receive the file. In PHP, Struts and jsp, it works well. I just want to find a Tapestry way.

Re: About Tapestry HttpServletRequest

2009-08-13 Thread Thiago H. de Paula Figueiredo
You're trying to use a Tapestry page as if it was a servlet. Tapestry pages are not servlets nor JSP files. Even Tapestry itself is not a servlet, being a servlet filter. Use tapestry-upload (http://tapestry.apache.org/tapestry5.1/tapestry-upload/) to handle file uploads. -- Thiago H. d

About Tapestry HttpServletRequest

2009-08-13 Thread sohu
I met a problem. I upload files from a page. In the tranditional servlet, all things are right. The code is : public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { DiskFileItemFactory factory = new DiskFileItemFactory(); // set