variable from .jsp to the html page

html, java, jsp, servlets

Solution

You need to do this:

<%= Variable %>

The resulting HTML will be:

<body>
oh my god
</body>

Problem

I have a `.jsp` page that passes the variable from the servlet. Lets assume that I have a `.jsp` page like ``` ... <body> ${Variable} </body> ... ``` and lets also assume that `variable = "oh my god"`. This is OK. But how I can put this variable to the `.html` page that the browser will show the value of the variable?

Original source

Related problems