HTML / JSP Variables

I am interested, one way or another, to define a variable in HTML / JSP. I searched Google very much, but could not find any resources on this. Mostly in my html / jsp, I try to save the external value in a html / jsp specific variable so that I can print this variable on the web page later. Let's say this is an external value of 5. Is it possible to do something like

x = 5

T

+7
source share
1 answer

Do you mean something like this?

<c:set var="x" value="5"/> ... ${x} 

<c:set> is a tag from JSTL .

+19
source

All Articles