Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in exporting the jsp in excel

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi List[],

Below is my jsp .I am trying to export this jsp to excel file.

But its still opening in jsp .Please tell me where i am wrong.


 
Ram Para
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" contentType="application/vnd.ms-excel; charset=windows-1252" %>

make sure that these two lines are on the top of jsp.
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I added these lines in the top of jsp.
But still the same problem is coming.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic