my dog learned polymorphism*
The moose likes Struts and the fly likes Different behavior for different files on save action? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Different behavior for different files on save action?" Watch "Different behavior for different files on save action?" New topic
Author

Different behavior for different files on save action?

Karn Kumar
Ranch Hand

Joined: Aug 06, 2009
Posts: 146

Hi All,

I have implemented file download functionality .

It shows different behavior for different files.

For .xls or .xlsx it gives me option to save , save as and open . But for PDF or txt files it directly opens them and never ask those options ( save , save as and open) .

I am using Struts 2.

Is it default behavior for those files or do i need to do anything at the code level to handle it ?

Thanks in advance ..

Karthik Jayachandran
Ranch Hand

Joined: Feb 18, 2009
Posts: 88

Nothing to do with Struts 2. Depends on your browser settings.

In Firefox, please check - Options --> Applications
Karn Kumar
Ranch Hand

Joined: Aug 06, 2009
Posts: 146

Thanks Karthik...
 
GeeCON Prague 2014
 
subject: Different behavior for different files on save action?