I create a form with some inputs and other information on a client by JSP,then i want to send the form to the server while a servlet runs on the server. My question is how to save the entire form which I post inside a html file, the html file will be created once I get the request.
<form name="myform" action="servlet on server" method="post">
<input type="button" id="sth" />
....
</form>
I want to use the File class to create the new html file, but how can I get the entire form and write it in the new file?Thanks.
I guess you could do some javascript to send a post request with a field containting the inside html of your document of your browser.
I cannot give you the exact syntax, but that’s the idea.
BUT it surely is a weird design you are building