How do I save a dynamic JSP page to a static HTML page using Java code?
I want to save JSP output to an HTML page and save it on the local machine.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Once the client receives the JSP page the server has already performed all the “dynamic stuff”. So, just download the web page into for instance a
Stringusing, say, theURLclass, and write thisStringout to a file. (You won’t get the dynamic parts anyway.)Related question (possibly even duplicates):