INSERT The FOLLOWING CODE IN YOUR JSP. Automatically The Dynamic Content Will Be Converted To Excel.
<% @ Page ContentType = "Application / VND.MS-Excel"%>
<% respternse.setContentType ("Application / VND.MS-Excel");%>