Meaningless Drivel is fun!
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
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
It is sorta covered in the JavaRanch Style Guide.
subject: html:file and showing the image..
jQuery in Action, 3rd edition