Author
how to Create a .html file from JSP at Web Server
Prafulla N. Patil
Ranch Hand
Joined: Mar 20, 2006
Posts: 106
how to Create a .html file from JSP at Web Server output of JSP is a HTML page which we want to store on web server as HTML file for later use. Kindly help as it is required to save the .html file earlier post of same type are not giving any clear idea can anyone explain with code example [ October 10, 2007: Message edited by: Prafulla N. Patil ]
Thanks, Prafulla Patil
SCJP, SCWCD
Prafulla N. Patil
Ranch Hand
Joined: Mar 20, 2006
Posts: 106
no reply from anyone ???/ no one knows about this in whole javaranch?
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56549
Originally posted by Prafulla N. Patil: no one knows about this in whole javaranch?
Have you considered that your question might be too vague for anyone to understand waht it is that you are asking? Please look through the information at the Smart Questions link below.
[Smart Questions ] [JSP FAQ ] [Books by Bear ] [Bear's FrontMan ] [About Bear ]
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35443
posted Oct 10, 2007 01:46:00
0
You can use a library like Jakarta HttpClient (or even just the java.net.HttpUrlConnection class) to access the JSP URL, and save the output of the call.
Android apps – ImageJ plugins – Java web charts
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
Why do you want to do this? If the pages are static, why make them JSPs in the first place? If there is dynamic data and you save the output in a static file, people won't be seeing up to date versions.
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
subject: how to Create a .html file from JSP at Web Server