• Post Reply Bookmark Topic Watch Topic
  • New Topic

opening .xls file using jsp

 
keerthi malyala
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Iam opening a .xls(say temp.xls) file from jsp int browser ,where the xls file is in a particalar folder of my server.now when iam trying to open the temp.xls file ,some junk data is coming instead of the correct data.here iam giving the url of the server/foldername/filename in the window.open method
like
window.open("url of the required location/fordername/filename...");.
But whereas if i open the same file by giving the path of my local system ,it works fine.
for example:
window.open("d:/myname/foldername/temp.xls");
But i wanted the url to work instead of from the specific directory name of my local System.
Thank you,
keerthi.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check to see that your server has mime headings set up for that extension.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!