--- On Tue, 12/16/08, elyes sallem wrote:
> to avoid any confusion,

Too late!

> 1- i have data in a file, so through the formfile, i get
> the file path (now i make the test locally, but after it 
> will be deployed on a server) and i load this data in a 
> database, depending on the file's meta data, and its
> content

The file name in the FormFile is the file name from the *client*--NOT the local 
path on the application server.

In your case, since you're testing locally, it *is* the file path on the 
client--but only because the browser you're using includes the complete path. 
Not all browsers do; some will only give the filename. Please take this in to 
account.

> now i have to make some choices of loading the  file , and
> saving the excel file

By using the servlet example given, or the same thing but in an action (and 
returning null) the *browser* will give you the option to open or save the 
file. *You* don't code that.

I really think you should search the web for "struts +file download" or 
something similar; it seems like there are some fundamental web application 
things that might be helpful to know.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to