• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Editing the contents of the PrintWriter

 
John Eric Hamacher
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello:

I am in a situation as follows:

My servlet is calling a stored procedure that writes HTML. I want to extract values from that HTML and do further processing with them and I want to edit the HTML. So after I make the call, I want to parse the contents of response.getWriter(). I am assuming that the stored procedure output is accessible there.

I cannot figure out a way to do this. Any ideas?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like you need a response wrapper and filter.

Or back up a bit and stop defining HTML at the DB layer. Never the best of ideas. Have the stored procedure produce an abstract data model that you can use to generate HTML at the appropriate time.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic