Rather use ServletContext#getMimeType() and add missing mime types to the web.xml, for example:Originally posted by Swapnil Gaurshettiwar:
I have requirment in which a document to be open depends on the document type
response.setContentLength(output.length+1000);
Apparently. You must be doing it wrong. To exclude things, is the code been placed in a servlet or a JSP? Don't you see anything in the appserver's logs? Don't you suppress exceptions?Originally posted by Swapnil Gaurshettiwar:
thanks for your suggestions,
I tried by making above changes,but same problem persist.
m I missing anything mandatory ?
Why? There is no other approach. The suggested approach is the right way and it should work.
can anyone suggest me some other approach ?
It will be really helpful.
Originally posted by Swapnil Gaurshettiwar:
the code is there in the first post
Hi SWAPNIL please try this simple example you need ony one html one jsp and jxl jar
Consider Paul's rocket mass heater. |