Your <EMBED> element is not rendered correctly. The brackets are escaped. That
might be the problem.
Uli
On 20.03.2013 08:40, ella_wang wrote:
> Hi everyone!
>
> For a customized StreamResponse, with the MIME-TYPE as "application/pdf",
> "application/msword", the file can be opened in the IE browser. Of course,
> the respective Viewer such as Adobe Reader, MS Office Word, has been
> installed.
>
> Now I need a special file type as AFP to be viewed directly in the IE
> browser, and the plug in used to view the file has been installed and worked
> fine to load a AFP file directly.
>
> As I know the MIME-TYPE for .AFP file is "application/vnd.ibm.modcap". But
> It doesn't work for me with a customized StreamResponse.
>
> Below is the snippet of the implementation.
> @Override
> public String getContentType()
> {
> return "application/vnd.ibm.modcap";
> }
>
> @Override
> public void prepareResponse(Response response)
> {
> response.setHeader("Content-Disposition", "inline; filename=" +
> filename + ".afp");
> }
>
> I have tried to add "response.setHeader("Content-Type",
> "application/vnd.ibm.modcap; charset=UTF-8");" into the "prepareResponse"
> method and add meta data into the template. But neither of them works for
> me.
>
> The generated HTML source is as below. In which I remove the src content.
> <html>
> <head>
> <title></title>
> </head>
> <body marginwidth="0" marginheight="0">
> <EMBED height="100%" type="application/vnd.ibm.modcap" width="100%"
> src="http://..." fullscreen="yes">
> </body>
> </html>
>
> Is there something I am missing? Could anyone here help me on it?
>
> Thanks,
> Ella
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Streamresponse-with-AFP-mime-type-tp5720572.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]