This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sandeep. Oza
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you configured a "handler" for that MIME type in your Netscape?
Bill
 
Arun Boraiah
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sandeep. Oza
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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();

%>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic