This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes  How to download(open) links, stored in XML file using Netscape6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark " How to download(open) links, stored in XML file using Netscape6.0" Watch " How to download(open) links, stored in XML file using Netscape6.0" New topic
Author

How to download(open) links, stored in XML file using Netscape6.0

Sandeep. Oza
Ranch Hand

Joined: Feb 04, 2002
Posts: 66
Friends,
I have struck at one problem in Netscape6.0
I have created one Briefcase( which stores files in config.xml and listed in a page in the form of href links)using JSP
These links opens perfectly in IE5.0 but not in Netscape6.0. One pop up message comes that mozilla does not recognize these file type. save the file or cancel. It can't open it.
Is there problem in MIME types? How to set?
How to solve these problem?

Pl. reply..
S. Oza
sandeepo@bsil.com


Yes, Everything Is Possible
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
Have you configured a "handler" for that MIME type in your Netscape?
Bill
Arun Boraiah
Ranch Hand

Joined: Nov 28, 2001
Posts: 233
hi,
In IE many things well be assumed like if some html tags missing or some header missing there by your code will be working fine with IE. But real test would be in netscape which you have done. So i feel some mistake in your code itself but not with Netscape.
This is what i can say by the data you have provided.
-arun


Sharing is learning
Sandeep. Oza
Ranch Hand

Joined: Feb 04, 2002
Posts: 66
Thank you Bill,
for your quick reply..
But.. how to configure "handler" for say Application/msword in Netscape?
In edit..preferences..Navigator..Helper applications i have added these file type..
but it doesn't make any difference.
S.Oza
Sandeep. Oza
Ranch Hand

Joined: Feb 04, 2002
Posts: 66
Thankx Arun,
Pl. find following my small patch of code..
May be you are right, some thing will be wrong in my code or i have missed...
<%
String filesep = System.getProperty("file.separator");
String sourceFilePathName = getServletContext().getRealPath("/abc/Briefcase/"+session.getAttribute("xyz")+filesep+session.getAttribute("pqr")+filesep+URLDecoder.decode((String)(request.getParameter("Nameof file"))));
download.downloadFile(sourceFilePathName);
response.getOutputStream().close();

%>
 
 
subject: How to download(open) links, stored in XML file using Netscape6.0