variable from .jsp to the html page

You need to do this:

<%= Variable %>

The resulting HTML will be:

<body>
oh my god
</body>

There are two options, either use scriptlets or expression language, i would suggest go with expression language.

Good Read on why Scriptlets are Bad


Actually currently best voted answer and solution posted there (<%= Variable %>) acts exactly the same as code that you provided in the question (${Variable}). The only difference is that yours is the one that should be used, because it's more readable and it's not any damn scriptlet!

For my point of view the, if you want to your JSP variable in play html page, you will need javascript to retrieve that variable out of html rendered by jsp, and you it in the actual newPage.html. You could put hidden iframe into that newPage.html, embed there jsp page as source of that iframe, and just parse its html with e.g. getElementById()