struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "elyes sallem" <elyes.sal...@gmail.com>
Subject Re: Fwd: export file data using formFile
Date Mon, 15 Dec 2008 16:05:58 GMT
2008/12/15 Dave Newton <newton.dave@yahoo.com>

> *boggled*
>
> --- On Mon, 12/15/08, elyes sallem <elyes.sallem@gmail.com> wrote:
> > i used a filechooser class (swing),  if any one have an
> > others solution, i'm interested here is the code :
> >
> > String wd = System.getProperty("user.dir");
> > JFileChooser fc = new JFileChooser(wd);
> > int rc = fc.showDialog(null, "Select Data File");
> > if (rc == JFileChooser.APPROVE_OPTION) {
> > File file = fc.getSelectedFile();
> > filename = file.getAbsolutePath();
> > }
> >
> > the problem is that the dialog appears twice
> > after i select a file, it reapper another time asking me to
> > choose a file any one has an idea, is this due to the fact that i use
> > swing in a web application ...?
>
> Um...
>
> Not sure where to begin, but in general Swing isn't required to download a
> file from a web application.


do you have an other solution? the html:file doesn't work for saving a new
file

Regards
Elyes



>
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Elyes.

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