• Post Reply Bookmark Topic Watch Topic
  • New Topic

Html tags are concatenating along with Excel download from Web application

 
Revathi Muthukrishnan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the Web application.I am generating html and xls file with passes through same JSP. Here I am posting the JSP.


When I am downloading the <HTML><br></HTML> are displaying along with Excel.
 
Campbell Ritchie
Marshal
Posts: 52580
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too difficult for this forum: moving discussion.
 
Dave Tolls
Ranch Hand
Posts: 2282
24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do not do this in JSP.
That's not what it's for.

That code should be in a servlet that then either forwards to a JSP page to generate HTML, or streams the Excel file.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!