aspose file tools*
The moose likes Struts and the fly likes browse button should display only file types All Files (*.*) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "browse button should display only file types All Files (*.*)" Watch "browse button should display only file types All Files (*.*)" New topic
Author

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

Girjesh Trivedi
Greenhorn

Joined: Nov 16, 2005
Posts: 9
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.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: browse button should display only file types All Files (*.*)