I have code like this to open a PDF and text file in Internet explorer. Its working fine. Now I have to open a CSV file which is not works well with IE but works fine with Firefox.
String OpenFile = "rundll32 url.dll,FileProtocolHandler " + FileURL
Firefox is opening the file as an attachement for PDF or CSV file. But IE didn't.
In servlet we can use like this and you can place the code to open a new window.
response.setContentType="text/Comma Separated Values"
Is there any way to write an equal code like this in AWT/Swing?