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:[EMAIL PROTECTED] 
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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to