• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can i obtain the generated HTML?

 
Marcio Di Pietro
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello fellows,

Can i obtain the generated HTML? The result of JSP? i'm using struts and working with actions ".do".
May i have to extend something in struts to get the generated html? i want this file code to make a specific parse in the html. I already have the parser working perfect, but i still haven't found a way to get the generated code by struts.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The HTML is sent directly to the calling process (usually a web browser somewhere on the network) by the application server.

You might be able to install something that captures that data and does something with it, which is exactly the way proxyservers work (as well as criminals who sit in between webservers and browsers and use this method to steal user information).
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34207
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marcio,
Do you want to get the generated HTML on your computer or on the server? If on your computer, it's as simple as doing a "save as" on the page. If on the server, you may want to look into a testing framework (like httpunit) that lets you run actions and get their generated results.
 
Vladas Razas
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Open you web page with Internet Explorer, from menu select View/Source.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic