Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

How to convert JSP into a txt or html file?

 
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possible to insert the output of a JSP into an HTML file (or a text file)?
What I am trying to do is to take a compiled JSP, and convert that completed page into an HTMl file (or ascii text file) whose contents look like the source file from within Internet Explorer.
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


[This message has been edited by brisk rook (edited November 01, 2001).]
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could create a simple Java client (like a getURL() client) that makes an HTTP request to your application server for your JSP page -- it would send a legal HTTP request for the page and then listen for the response -- you could then strip out the headers and write the rest of the information to a file -- thus saving the <HTML> code.
Here's an example of GetURL that I found by doing a quick search google.
(fixed the link)
------------------
- Jessica Bradley
HP Bluestone
[This message has been edited by Jessica Bradley (edited November 02, 2001).]
[This message has been edited by Jessica Bradley (edited November 02, 2001).]
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I like to know much more about it,but URl is not working can u please help me in this topic.....
Thanks
Shankar
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
GetUrl
Dave.
reply
    Bookmark Topic Watch Topic
  • New Topic