I am generating a report using jsp. To get the output in excel.

Serge Knystautas

If you are using requestdispatcher.include() to get to your JSP, then the outputstream/writer is getting flushed before the JSP runs. This means you cannot change the headers, and hence, cannot change the content type. You can change the header by forwarding the request from the servlet to your JSP. You must be sure that you do not write anything to the outputstream or writer before you forward, or the forward will fail.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact