Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 53687 invoked from network); 28 Feb 2005 00:25:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 28 Feb 2005 00:25:10 -0000 Received: (qmail 26612 invoked by uid 500); 28 Feb 2005 00:25:04 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 26572 invoked by uid 500); 28 Feb 2005 00:25:04 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 26558 invoked by uid 99); 28 Feb 2005 00:25:04 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail53.messagelabs.com (HELO mail53.messagelabs.com) (216.82.255.35) by apache.org (qpsmtpd/0.28) with SMTP; Sun, 27 Feb 2005 16:25:02 -0800 X-VirusChecked: Checked X-Env-Sender: Jennifer.Amon@moen.com X-Msg-Ref: server-13.tower-53.messagelabs.com!1109550299!36061753!2 X-StarScan-Version: 5.4.11; banners=moen.com,-,- X-Originating-IP: [158.62.197.4] Received: (qmail 13026 invoked from network); 28 Feb 2005 00:25:00 -0000 Received: from fw.moen.com (HELO pointcheck) (158.62.197.4) by server-13.tower-53.messagelabs.com with SMTP; 28 Feb 2005 00:25:00 -0000 Received: from foghorn.hq.moen.com ([10.4.68.10]) by pointcheck; Sun, 27 Feb 2005 19:24:59 -0500 (EST) Received: from NOEXCHHUB1.ad.moen.com (noexchhub1.hq.moen.com [10.4.10.101]) by foghorn.hq.moen.com (8.12.10+Sun/8.12.10) with ESMTP id j1S0OwQV008812; Sun, 27 Feb 2005 19:24:58 -0500 (EST) Received: from noexch3.ad.moen.com ([10.4.10.146]) by NOEXCHHUB1.ad.moen.com with Microsoft SMTPSVC(5.0.2195.6713); Sun, 27 Feb 2005 19:24:57 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: [httpClient] CF file upload to Tomcat - sample code? Date: Sun, 27 Feb 2005 19:24:56 -0500 Message-ID: <9EDD9B0BD6B915468CB8F62127C08F5504256E03@noexch3.ad.moen.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [httpClient] CF file upload to Tomcat - sample code? Thread-Index: AcUdAdybWQFLVpH8TnmCpI0zI2rx6AAKODHg From: "Amon, Jennifer" To: "Jakarta Commons Users List" , "Martin Cooper" X-OriginalArrivalTime: 28 Feb 2005 00:24:57.0446 (UTC) FILETIME=[EEA42060:01C51D2B] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Yes,=20well,=20as=20I=20said,=20I'm=20a=20total=20newbie. I=20think=20now,=20that=20this=20will=20be=20totally=20an=20httpClient=20i= ssue=20for=20my=20part of=20the=20puzzle. There=20are=20three=20pieces=20to=20this.=20First,=20there=20is=20the=20cl= ient=20browser, where=20a=20user=20inputs=20a=20lot=20of=20data=20and=20makes=20some=20cho= ices.=20Then=20he=20clicks on=20a=20button=20that=20causes=20an=20XML=20file=20to=20be=20generated=20= and=20sent=20(uploaded) to=20a=20TomCat=20server.=20The=20TomCat=20server=20will=20generate=20a=20= pdf=20based=20on=20the uploaded=20XML=20file,=20and=20that=20file=20will=20be=20returned=20to=20t= he=20CF=20server, where=20the=20end=20user=20will=20see=20a=20link=20in=20his=20browser,=20f= rom=20which=20he=20can download/save=20the=20generated=20file. When=20I=20first=20started=20this,=20someone=20told=20me=20to=20look=20at=20= the=20httpClient=20and fileUpload=20software.=20I=20mistakenly=20assumed=20I=20needed=20the=20fil= eUpload=20piece, since=20I'm=20trying=20to=20upload=20a=20file.=20Actually,=20I=20need=20th= e=20httpClient piece,=20and=20the=20TomCat=20server=20will=20be=20doing=20the=20fileUploa= d=20piece,=20if=20I even=20yet=20understand=20it=20all=20correctly. I=20can't=20use=20CF=20native=20functionality=20to=20do=20this,=20because=20= I=20can't programmatically=20set=20the=20value=20of=20a=20field=20of=20type=20"file.= "=20So,=20... Anyway,=20I=20think=20I=20have=20found=20a=20hunk=20of=20sample=20code=20t= hat=20does=20what=20I need. Thanks, =20=20=20Jennifer ------------------------------------------------------------------ Jennifer=20R.=20Amon=20=20=20=20=20=20=20=20=20=20=20=20=20=20Phone:=20440= -962-2471 Lead=20Technical=20Consultant=20=20=20=20=20=20=20FAX:=20440-962-2663 Moen=20Incorporated=20=20=20=20=20=20=20=20=20=20=20=20=20Email:=20jamon@m= oen.com 25300=20Al=20Moen=20Drive=20=20=20=20=20=20=20=20Personal:=20jenamon@comca= st.net North=20Olmsted,=20OH=20=2044070=20=20=20Web=20Site:=20http://home.comcast= .net/~jenamon/ ------------------------------------------------------------------ -----Original=20Message----- From:=20Martin=20Cooper=20[mailto:mfncooper@gmail.com]=20 Sent:=20Sunday,=20February=2027,=202005=202:23=20PM To:=20Jakarta=20Commons=20Users=20List Subject:=20Re:=20[fileUpload]=20[httpClient]=20CF=20file=20upload=20to=20T= omcat=20-=20sample code? On=20Thu,=2024=20Feb=202005=2008:54:55=20-0500,=20Amon,=20Jennifer =20wrote: >=20Yes,=20how=20to=20post=20from=20CF=20to=20the=20Tomcat=20server=20is=20= the=20first=20issue.=20I >=20think=20we'll=20have=20to=20use=20httpClient=20to=20post.=20We=20can't= =20use=20a=20form=20with=20a >=20file=20field,=20because=20you=20can't=20dynamically=20set=20the=20file= =20name. I'm=20confused=20by=20this.=20If=20you=20use=20HttpClient,=20you'd=20be=20= running=20on=20the (ColdFusion?)=20server,=20uploading=20to=20another=20(Tomcat)=20server.=20= If=20you=20use "a=20form=20with=20a=20file=20field",=20you're=20talking=20about=20somethi= ng=20that=20would be=20posted=20by=20a=20browser=20to=20a=20(ColdFusion=20or=20Tomcat)=20ser= ver.=20Which=20are you=20trying=20to=20do? >=20Then,=20there=20will=20be=20a=20return=20of=20a=20file=20from=20the=20= server=20as=20a=20result=20of >=20what=20the=20server=20does=20with=20the=20xml=20file.=20I=20don't=20kn= ow=20how=20to=20handle that, >=20either. Again,=20I'm=20confused.=20If=20the=20file=20is=20coming=20back=20from=20a= =20Tomcat=20server to=20a=20ColdFusion=20server,=20then=20isn't=20this=20then=20a=20ColdFusio= n=20question? You=20prefixed=20your=20subject=20line=20with=20[FileUpload],=20but=20none= =20of=20what you're=20asking=20appears=20to=20be=20related=20to=20FileUpload.=20Sorry=20= if=20I'm completely=20misunderstanding. -- Martin=20Cooper >=20Thanks, >=20=20=20Jennifer >=20 >=20------------------------------------------------------------------ >=20Jennifer=20R.=20Amon=20=20=20=20=20=20=20=20=20=20=20=20=20=20Phone:=20= 440-962-2471 >=20Lead=20Technical=20Consultant=20=20=20=20=20=20=20FAX:=20440-962-2663 >=20Moen=20Incorporated=20=20=20=20=20=20=20=20=20=20=20=20=20Email:=20jam= on@moen.com >=2025300=20Al=20Moen=20Drive=20=20=20=20=20=20=20=20Personal:=20jenamon@c= omcast.net >=20North=20Olmsted,=20OH=20=2044070=20=20=20Web=20Site:=20http://home.com= cast.net/~jenamon/ >=20------------------------------------------------------------------ >=20-----Original=20Message----- >=20From:=20Tim=20Reilly=20[mailto:timothyreilly@gmail.com] >=20Sent:=20Wednesday,=20February=2023,=202005=2011:50=20PM >=20To:=20Jakarta=20Commons=20Users=20List >=20Subject:=20Re:=20[fileUpload]=20CF=20file=20upload=20to=20Tomcat=20-=20= sample=20code? >=20 >=20On=20Wed,=2023=20Feb=202005=2014:13:17=20-0500,=20Amon,=20Jennifer=20w= rote: >=20 >=20>=20We=20want=20a=20button=20click=20on=20a=20web=20page=20(ColdFusion= /IIS/Win2K)=20to=20cause >=20an >=20>=20XML=20file=20to=20be=20generated=20and=20uploaded=20to=20a=20TomCa= t(unix)=20server, which >=20>=20will=20use=20the=20xml=20to=20generate=20a=20pdf=20file=20to=20be=20= sent=20back=20to=20the client, >=20>=20where=20it=20will=20be=20saved=20in=20a=20temporary=20area=20on=20= the=20web=20sever,=20and=20the >=20>=20user=20will=20get=20back=20a=20link=20to=20the=20pdf. >=20> >=20>=20We=20can=20generate=20the=20xml,=20but=20don't=20know=20how=20to=20= do=20the=20next=20piece. The >=20>=20backend,=20on=20the=20TomCat=20server,=20is=20being=20written=20by= =20a=203rd=20party,=20so=20I >=20>=20don't=20have=20to=20worry=20about=20that=20piece. >=20> >=20Hi=20Jennifer, >=20I'm=20not=20clear=20on=20what=20you=20mean=20by=20"next=20part"=20...=20= do=20you=20mean=20how=20to >=20post=20the=20xml=20from=20CF=20to=20the=20Tomcat=20server? >=20 >=20If=20so=20that's=20probably=20off-topic=20for=20commons-user=20list=20= (but=20see=20cfhttp >=20tag http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-p58.htm) >=20 >=20Or=20are=20you=20asking=20about=20how=20to=20recieve=20the=20file=20on= =20the=20Tomcat=20server? >=20Maybe=20this=20helps >=20http://jakarta.apache.org/commons/fileupload/using.html=20or=20maybe=20= this >=20article > http://www.theserverside.com/articles/content/HttpClient_FileUpload/arti >=20cle.html >=20 >=20HTH, >=20-TR >=20 >=20--------------------------------------------------------------------- >=20To=20unsubscribe,=20e-mail:=20commons-user-unsubscribe@jakarta.apache.= org >=20For=20additional=20commands,=20e-mail:=20commons-user-help@jakarta.apa= che.org >=20 >=20_______________________________________________ >=20This=20message=20was=20scanned=20for=20viruses=20prior=20to=20entering= =20the=20Moen network >=20 >=20 > _______________________________________________________________________ >=20 >=20The=20information=20transmitted=20is=20intended=20only=20for=20the=20p= erson=20or=20entity to=20which=20it=20is=20addressed=20and=20may=20contain=20confidential=20an= d/or=20privileged material.=20Any=20review,=20retransmission,=20dissemination=20or=20other=20= use=20of,=20or taking=20of=20any=20action=20in=20reliance=20upon,=20this=20information=20= by=20persons=20or entities=20other=20than=20the=20intended=20recipient=20is=20prohibited.=20= If=20you received=20this=20in=20error,=20please=20contact=20the=20sender=20and=20de= lete=20the material=20from=20any=20computer. > _______________________________________________________________________ >=20 >=20--------------------------------------------------------------------- >=20To=20unsubscribe,=20e-mail:=20commons-user-unsubscribe@jakarta.apache.= org >=20For=20additional=20commands,=20e-mail:=20commons-user-help@jakarta.apa= che.org >=20 > --------------------------------------------------------------------- To=20unsubscribe,=20e-mail:=20commons-user-unsubscribe@jakarta.apache.org For=20additional=20commands,=20e-mail:=20commons-user-help@jakarta.apache.= org _______________________________________________ This=20message=20was=20scanned=20for=20viruses=20prior=20to=20entering=20t= he=20Moen=20network _______________________________________________________________________ The=20information=20transmitted=20is=20intended=20only=20for=20the=20perso= n=20or=20entity=20to=20which=20it=20is=20addressed=20and=20may=20contain=20= confidential=20and/or=20privileged=20material.=20Any=20review,=20retransmi= ssion,=20dissemination=20or=20other=20use=20of,=20or=20taking=20of=20any=20= action=20in=20reliance=20upon,=20this=20information=20by=20persons=20or=20= entities=20other=20than=20the=20intended=20recipient=20is=20prohibited.=20= If=20you=20received=20this=20in=20error,=20please=20contact=20the=20sender= =20and=20delete=20the=20material=20from=20any=20computer. _______________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org