struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oscar <>
Subject Re: File I/O in Struts 1.2.x
Date Mon, 14 Dec 2009 16:38:19 GMT
I think that's possible. For example processing an excel file with POI, in
your form you choose the file, then submit form and in the action you
process the excel file with POI libraries, you edit the excel file with
something like adding rows or something like that, then you write the stream
of the excel file at the end of the method and returning null from your
action method, then it will appear in the form the dialog box to download
excel file. That's an example with an excel file, but i think that you can
do the process with another file type.

2009/12/14 davargas123 <>

> Is it possible to upload a file to a server, process the data as it needs
> to
> be, and then write the file back to the local machine from which it
> originally was uploaded all in a single execute method of a single action
> class? Or, am I required to have an action for uploading it to the server,
> and another for processing, and another for downloading, or something in
> between?
> --
> View this message in context:
> Sent from the Struts - User mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message