File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes html:file and showing the image.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:file and showing the image.." Watch "html:file and showing the image.." New topic

html:file and showing the image..

Henrik Krievs
Ranch Hand

Joined: Jan 05, 2004
Posts: 60

Is it possible to grap the image selected by html:file - and showing it - before submiting the page?

Regards, Henrik
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
You could upload the file, show it as an image and give the user a chance to abort before saving it on the server.

As far as showing it before you actually upload it, there may be some JavaScript voodoo you could work, but I seriously doubt it.

Consultant, Sima Solutions
I agree. Here's the link:
subject: html:file and showing the image..
It's not a secret anymore!