Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting JSP's HTML output inside the same JSP

 
Kingsly Theodar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way of getting the html output of a JSP.

I would like to consume the string(HTML output), after extracting it out of the PrintWriter object.

Inspecting the Servlet API, I was not able to figure out a way.

Is using servlet's out.println the only way?!

Please help.

Thanks in advance,
T.Kingsly
 
Frederic Esnault
Ranch Hand
Posts: 284
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure I understand what you want to do. Can you clarify, please?
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think you want to consume the respons generated by the JSP page before displaying to browser. Look at the filters, it may useful to you.

Thanks
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic