You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Steve Bosman <st...@gmail.com> on 2006/06/14 11:28:23 UTC
How can I transfer a file to a struts based web application from a java application
Hi,
I have a struts 1.1 application with an Action that processes a file
obtained using an ActionForm containing a
org.apache.struts.upload.FormFile parameter, I want to use this action
from a java application and would be really grateful if someone could
give me pointers on how to do this using URLConnection. I've used
URLConnection before, it's just the file transfer that has me stumped.
Thanks in advance
Steve
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How can I transfer a file to a struts based web application from a java application
Posted by Steve Bosman <st...@gmail.com>.
Thanks, but I don't see how JFileChooser will help - my application
can already obtain a File what I don't get is how to transfer the file
via http to be processed by the struts application.
Steve
On 6/19/06, Mukta <mu...@amsoft.net> wrote:
> Try using JFileChooser
>
>
> -----Original Message-----
> From: Steve Bosman [mailto:stevebosman@gmail.com]
> Sent: Wednesday, June 14, 2006 2:58 PM
> To: Struts User Mailing List
> Subject: How can I transfer a file to a struts based web application from a
> java application
>
> Hi,
>
> I have a struts 1.1 application with an Action that processes a file
> obtained using an ActionForm containing a
> org.apache.struts.upload.FormFile parameter, I want to use this action
> from a java application and would be really grateful if someone could
> give me pointers on how to do this using URLConnection. I've used
> URLConnection before, it's just the file transfer that has me stumped.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: How can I transfer a file to a struts based web application from a
java application
Posted by Mukta <mu...@amsoft.net>.
Try using JFileChooser
-----Original Message-----
From: Steve Bosman [mailto:stevebosman@gmail.com]
Sent: Wednesday, June 14, 2006 2:58 PM
To: Struts User Mailing List
Subject: How can I transfer a file to a struts based web application from a
java application
Hi,
I have a struts 1.1 application with an Action that processes a file
obtained using an ActionForm containing a
org.apache.struts.upload.FormFile parameter, I want to use this action
from a java application and would be really grateful if someone could
give me pointers on how to do this using URLConnection. I've used
URLConnection before, it's just the file transfer that has me stumped.
Thanks in advance
Steve
---------------------------------------------------------------------
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