• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

browse button should display only file types All Files (*.*)

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using this struts code

<html:file property="exportBean.file" style="width:220px; height:24px;" styleId="file" />

this code generate a browse button to browse a file.
when I am clicking on this button a dialog box appears and in file of types drop down ,I want to change the type,I am using internet explorer.
plz suggest me the solution how can I change the file types in dialog box for browse button.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've also wondered if it might be possible to filter the file selection, so I did a little research. For Internet explorer, filtering the file browse to accept only certain file types is not supported, but some other browsers may support it. Here's a good link on the subject:

http://www.cs.tut.fi/~jkorpela/forms/file.html
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic