I'm trying to create a percentage bar with HTML+CSS. I have the following code:
<div id="fundingBar">
<div id="fundingPercentage" style="width:45%"><p class="percentage">45%</p></div>
</div>
Now I want the percentage to be a dynamic value, so I have a session attribute called "percentage". I'd like to use this value in the JSP page and the only way I know is using EL, so it should be something like this:
<div id="fundingBar">
<div id="fundingPercentage" style="width:${percentage}%"><p class="percentage">${percentage}%</p></div>
</div>
but this doesn't work, so is there any way to do it this way or I should use javascript or something like that?
Thanks!