• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

customizing button image for file upload using struts

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Anybody tried to give the customized "Browse" image for the file upload control using Struts. I am using FormFile object of the struts for uploading, which is not allowing me to attach my own "Browse" image. This is just to keep the uniform user interface, because I have some other "Browse" buttons in that page. Any help is very much appreciated.
Thanks,
sai kinnera
 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have faced to this issue before. However, after several searching from the web, our conclusion is, we CANNOT customerize the Browse button if we make use of the tag <input type="file" ... >.

One article from Microsoft mentions that, in IE 4, we can use a gif as browse button. When this button is clicked, it invoke a JS to set the value of the file. However, this *property* is intentionally disabled in IE 5 and later versions due to the security issues. Netscape has disabled this feature as well. Thus, we have no way to customize the browse button.

Nick
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic