Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Capturing JSP output to a file  RSS feed

 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is it possible to capture the JSP output?
Thanx in adv.
 
Michael Zalewski
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If using IE, right click on any non-image portion of the page, then select 'View Suorce'. Should open the output from the JSP page into Notepad or whatever you have selected as your HTML editor.
If you want to do it programmatically, you can use a URLConnection object. The details are a little different if the page is the result of a POST, but it's not very hard for a GET (and not really too hard for a POST).
If you want to do it from a batch file or shell script, there is a program called 'curl' (both Windows and Unix) which might get you what you want.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!