struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anuradha S.Athreya" <anuradh...@world2web.com>
Subject RE: File Upload
Date Mon, 29 Aug 2005 12:55:48 GMT
I yeah I figured that out...

But if I were to have my java program do the Post job, How do I specify the
file details?

Rgds 
Anu 

-----Original Message-----
From: Hubert Rabago [mailto:hrabago@gmail.com] 
Sent: Monday, August 29, 2005 6:21 PM
To: Struts Users Mailing List
Subject: Re: File Upload

You can't upload a document using a GET request.  Stick with your HTTP post
form.

Hubert

On 8/29/05, Anuradha S.Athreya <anuradhasa@world2web.com> wrote:
> Hello,
> 
> I am using Struts Upload. I want to understand the intricacies of 
> using File upload using Struts.
> In our JSP/ HTML, we use a form with enctype ="multipart/form-data" 
> and the HTML - file to upload a file using HTTP post.
> 
> Now, If I were to spcify the same request in the Browser;s address 
> bar, what should it be?
> http://localhost:20000/myApp/uploadDocument.do?name=myFile&file=test.t
> xt&enc
> type=multipart/form-data
> 
> My Action form has the field : name and file.
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message