This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes Save jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Save jsp page " Watch "Save jsp page " New topic
Author

Save jsp page

alessandro bresolin
Greenhorn

Joined: Jun 07, 2012
Posts: 3
Hello,
i have a jsp page and its content comes from database dynamically. I need to automatically save the displayed page as html file to a folder in my server every time the page is loaded.
Can anyone help me?

Thanks
Pongsakorn Semsuwan
Ranch Hand

Joined: May 15, 2011
Posts: 34

How about having AJAX call when page is loaded.
Send the entire content as a parameter.
Have Servlet write it to file.

A web application developer wannabe from Thailand
My StartUp : http://www.dreamlog.co
Blog : http://pongsakornsemsuwan.wordpress.com
alessandro bresolin
Greenhorn

Joined: Jun 07, 2012
Posts: 3
Ok, thank you!
 
Consider Paul's rocket mass heater.
 
subject: Save jsp page