Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

edit HTML code on fly using java

ashish kulkarni
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
does any one know a class or utility in java which
will allow to update or modify HTML code on the fly,
Here is what i am trying to do, i have a filter which
which intercepts the response before being send out to
browser, depending on some condition i want to modify
this response which is HTML code, and add some tags
and modify some text and then send this modified
response to the browser,
My project is sort of screen scraper (web facing on
In this i want to add some features which are not
available in green screen, like adding some graphics
on the fly by modifying the response generated by web
facing tool
Any guidance on doing so with speed, it will be for
every request for that particular jsp

Is there some utility which will help in doing this, i
dont want to work with strings manipulation but some
kind of class which will allow me to work with the
HTML as XML file
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic