Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Html tags are concatenating along with Excel download from Web application  RSS feed

 
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.
 
Marshal
Posts: 59092
180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too difficult for this forum: moving discussion.
 
Rancher
Posts: 3492
39
  • 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.
 
That new kid is a freak. Show him this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!