Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 89960 invoked from network); 28 Mar 2007 22:33:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Mar 2007 22:33:35 -0000 Received: (qmail 13137 invoked by uid 500); 28 Mar 2007 22:33:32 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 13104 invoked by uid 500); 28 Mar 2007 22:33:32 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 13093 invoked by uid 99); 28 Mar 2007 22:33:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2007 15:33:32 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of kMorrison@pathfire.com designates 64.95.52.11 as permitted sender) Received: from [64.95.52.11] (HELO pfsmtp2.pathfire.com) (64.95.52.11) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2007 15:33:23 -0700 Received: from pf-mail01.vninet.com (pf-mail01.pathfire.com [10.26.16.16]) by pfsmtp2.pathfire.com (Postfix) with ESMTP id 46CC12BD32 for ; Wed, 28 Mar 2007 18:33:00 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: File upload fails first time, then works after page reload Date: Wed, 28 Mar 2007 18:32:46 -0400 Message-ID: In-Reply-To: <428333F7AE74F740AFAEB9E3E1A12A9A263EE3@blrx3m02.blr.amer.dell.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: File upload fails first time, then works after page reload thread-index: AcdwoEoywk83gPniT0qxRjAHdJ8RqwAAF8DAABF4+G0AKIDI0A== References: <60EC718763993F489F1961F264C850A302E35124@ASHEVS009.mcilink.com> <934390.84971.qm@web56704.mail.re3.yahoo.com> <428333F7AE74F740AFAEB9E3E1A12A9A263EE3@blrx3m02.blr.amer.dell.com> From: "Kelly Morrison" To: "Struts Users Mailing List" X-Virus-Checked: Checked by ClamAV on apache.org I really don't know if I'm using NTML Authentication: how would I check that? I managed to work around my problem by getting the request, wrapping it in a JakartaMultiPartRequest, parsing the request, and retrieving the values to initialize my class. For some reason, the very first time I try to submit, the multipart request doesn't get wrapped and my bean doesn't get initialized properly, but it works after that. It's very puzzling. Thanks for the advice, kell -----Original Message----- From: Amit_Wadhwa@Dell.com [mailto:Amit_Wadhwa@Dell.com]=20 Sent: Tuesday, March 27, 2007 11:10 PM To: user@struts.apache.org; user@struts.apache.org Subject: RE: File upload fails first time, then works after page reload Are you using the Java NTML Authentication method by any chance (before reaching this page or on this page) ? NTLM makes tomcat/struts behave erratically. Form posts dont work (Intermittently). =20 ________________________________ From: Kelly Morrison [mailto:kMorrison@pathfire.com] Sent: Wed 3/28/2007 12:30 AM To: Struts Users Mailing List Subject: File upload fails first time, then works after page reload I'm a Struts newbie having problems with the file upload in Struts 2.0.6 with Tomcat 6.0.10. When I select a file and submit it, the setXXX(), setXXXContentType(), and setXXXFileName() methods in my action aren't being called. However, if I then hit the Back button and try again, it works and my setters are called. =20 If I set a breakpoint in my upload action's execute() method, I can see that the first time around, all the way down in the CoyoteAdapter.service() method, the "file", "uploadContentType", and "uploadFilename" values are all null (in the request->attributes->table->...etc... data). After backing up and resubmitting, the values are filled in appropriately, so it looks like the problem is occurring long before my upload action is called. =20 I looked through the open issues, but didn't see anything relevant. I would appreciate any suggestions that might help me debug this. =20 Thanks, kell =20 =20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org