• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Devaka Cooray
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

Render MHTML Report in JSP

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Guys,

We have a MHTML report generated by Cognos. We need to render this report inside our application's JSP itself. I am stuck with these two isses :

1. The report is generated outside location of WAR. So I cant directly import it into a JSP. Is there a way to import from a location outside the WAR ? After some googling, I found <c:import>. But it didnt work for me.

2. The second approach was to stream the file on to the JSP via the controller. The code is as below(this is also after some googling ) :




I tried with a lot of permutations and combinations of setContentType and setHeader. They too didnt help. Whenever Content Type was set to "text/mhtml" / "text/mht", there would always be a pop up of the report instead of rendering it inline (Even after setting the header to "inline").

Has anybody rendered a MHTML report before ?

Thanks,
Midhun.


 
Sheriff
Posts: 67759
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Midhun Agnihotram wrote:But it didnt work for me.


ItDoesntWorkIsUseless
 
Remember to always leap before you look. But always take the time to smell the tiny ads:
The new gardening playing cards kickstarter is now live!
https://www.kickstarter.com/projects/paulwheaton/garden-cards
reply
    Bookmark Topic Watch Topic
  • New Topic