File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

get HTML code ???

 
marko stone
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
how i can get in servlet html code, which was generated in another servlet ?
thanks
 
Christopher Dixon
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you just want to include it in a page the servlet is generating, look at Request.getRequestDispatcher(String).include()
To capture the code, either wrap the Request in a proxy that writes to your own Writer or OutputStream, or look at servlet filtering.
If you're trying to screen scrape, there are lots of packages out there to do it (check out Struts), or you can open a java.net.URL and do it the hard way.
Google is the Oracle. Ask and ye shall receive.
Chris
[ October 28, 2002: Message edited by: Christopher Dixon ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic