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

excel page not opening in a browser

 
Confused
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have an jsp interface through which i am uploading an excel file to the server. now when i am calling that particuler excel page from a hyperlink.. it is not opening like an excel... showing some junk..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK. Now what?

(Translation: this post is not useful without code)
 
Confused
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im not having any problem while Im uploading an excel thru a jsp page.. It is being saved in the server fine. But when i am tring to access the .xls file from the folder list or by a url.. it is showing some junk..Is that some browser related problem.
 
Kartik Patel
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you set proper contentType in header.
if not search for "setContentType + microsoft Excel" in google
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic