This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to open .xls file in new window

 
Mohan Reddy
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I'm trying to open an excel file in new window after clicking on hyper link. But its displaying junk values.

Im using Tomcat with struts..

I tried setting mime type in web.xml file, by setting content type. But there is no use.

Please get me out of this problem.

Thnx in advance
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post your code and settings.
 
Mohan Reddy
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi chetan

this is the code in my jsp page..(Im using struts over here)



<a href='/iDENPDR/uploadedfiles/PBP/<bean:write name="records" property="strFilePath"/>' target="new"><img STYLE='border-style:none' src='/iDENPDR/img/Excel.gif' alt='Build Plan Excel Sheet' time='16' height='16' align='middle'>


this is the code in my web.xml file

<mime-mapping>
<extension>xls</extension>
<mime-type>application/vnd.ms-excel</mime-type>
</mime-mapping>


Please let me know the solution for this...


Thnx in advance...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic