how to retrieve a session variable ?
Hello,
I'm new to the site and start with jquery.
I like to know how to retrieve a session variable.
I use the Spring MVC , below my code (controller + jsp)
in the controller, I put my session variable
model.addAttribute("tabDay", getJoursFeriescalendrierDefaut());
getJoursFeriescalendrierDefaut () return a list of string
Int the JSP
<script type="text/javascript" charset="utf-8">
var tabJoursFeries=${
tabDay}; //not working
alert(tabJoursFeries)
var tabJoursFeries2=$(tabDay); //not working
alert(tabJoursFeries2)
</script>
but it works in the body of JSP.
someone has an idea to help me?
Sorry for my English