You need to reload the page once a second and send the form using the post method. in the form you need to send the variable that you received before.

<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="UTF-8"/> <title>Авторизация</title> <meta content="text/html; Charset=UTF-8"> <script type="text/javascript" src="jquery.js"> setTimeout(function () { location.reload(); }, 1000); </script> </head> <body> <form id="form" action="/" method="POST"> <input type="hidden" name="${sessionId}"/> </form> <p>Ваш sessionId: ${sessionId}</p> </body> </html> 

Now the form is not sent.

    0