• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

customized button for html:file

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello

I have a form that is used to upload file to a server. I am using the html:file utility of struts. However, the client requires a certain look and feel that says all pages should not have buttons and the links to navigate or trigger any action should be gifs. How can I customize the html:file utility such that instead of the browse button, a gif would take its place instead? Thank you

Clarence
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe your only choice is to rely on CSS. Check out the style and styleClass attributes for html:file.
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oops. You can't affect the rendering of the "browse" button using CSS. There is, however, a JavaScript-based workaround which you might manage to get working with the Struts html:file tag.
reply
    Bookmark Topic Watch Topic
  • New Topic