Return-Path: X-Original-To: apmail-struts-dev-archive@www.apache.org Delivered-To: apmail-struts-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0D04418FB5 for ; Tue, 23 Feb 2016 11:47:30 +0000 (UTC) Received: (qmail 69180 invoked by uid 500); 23 Feb 2016 11:47:07 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 69105 invoked by uid 500); 23 Feb 2016 11:47:07 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 69094 invoked by uid 99); 23 Feb 2016 11:47:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Feb 2016 11:47:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id B0A001805E4 for ; Tue, 23 Feb 2016 11:47:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.301 X-Spam-Level: X-Spam-Status: No, score=-2.301 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id LPXZIAcQBIYG for ; Tue, 23 Feb 2016 11:47:04 +0000 (UTC) Received: from smtp3.cineca.it (smtp3.cineca.it [130.186.31.163]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTP id C617F5FAE8 for ; Tue, 23 Feb 2016 11:47:03 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp3.cineca.it (Postfix) with ESMTP id A660845E00 for ; Tue, 23 Feb 2016 12:46:56 +0100 (CET) X-Virus-Scanned: amavisd-new at cineca.it Received: from smtp3.cineca.it ([127.0.0.1]) by localhost (zimbracin23.private.cineca.it [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 6IbfEo46WEKG for ; Tue, 23 Feb 2016 12:46:56 +0100 (CET) Received: from zimbracin04.private.cineca.it (lb0304-acad-nat.private.cineca.it [10.253.8.1]) by smtp3.cineca.it (Postfix) with ESMTP id 8D6AA45D92 for ; Tue, 23 Feb 2016 12:46:56 +0100 (CET) Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbracin04.private.cineca.it (Postfix) with ESMTP id 86B234800D for ; Tue, 23 Feb 2016 12:46:56 +0100 (CET) X-Virus-Scanned: amavisd-new at zimbracin04.private.cineca.it Received: from zimbracin04.private.cineca.it ([127.0.0.1]) by localhost (zimbracin04.private.cineca.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lLtyG7How+8O for ; Tue, 23 Feb 2016 12:46:56 +0100 (CET) Received: from zimbracin10.private.cineca.it (zimbracin10.private.cineca.it [10.253.9.22]) by zimbracin04.private.cineca.it (Postfix) with ESMTP id 2999948004 for ; Tue, 23 Feb 2016 12:46:56 +0100 (CET) From: =?iso-8859-1?Q?Filippo_Munaf=F2?= To: Subject: MultiPartRequestWrapper Date: Tue, 23 Feb 2016 12:46:56 +0100 (CET) Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 X-Mailer: Zimbra 7.2.2_GA_2858 (ZimbraConnectorForOutlook/7.2.5.809) thread-index: AdFuL9tpLqtUFJLpTqaXcg/s9JvySg== Content-Language: it X-Originating-IP: [10.253.9.4] Hi, we are trying to migrate a big webapp (a thousand pages) from struts1 to struts2. One of the first step was to introduce the StrutsPreparefilter, leaving everything served by the ActionServlet. Then we removed the objects request and response from every action's methods signature, leaving them managed only in action ancestor class. Talking about multipart request, we extended JakartaMultiPartRequest to override the parse method in order to leave request parsed by our code. Now we would like to leave request parse made by JakartaMultiPartRequest, removing the override, but we need access to the fileitems uploaded by users. In other words, our action ancestor class needs to get access to the "files" properties of JakartaMultiPartRequest through the MultiPartRequestWrapper. Otherwise we need to code something similar to what is done by the FileUploadInterceptor.intercept and create againg the fileitem needed by our application code. The request is: can you change the MultiPartRequestWrapper, and the JakartaMultiPartRequest, adding a public getFileItems(String) method? Another question: in Dispatcher.wrapRequest there is no update of request in context, so a ServletActionContext.getRequest() never return the MultiPartRequestWrapper (or StrutsRequestWrapper). Why? Thanks, Filippo --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org