what is the meaning of the $ sign in the following code:
<h1 class="title">Welcome ${consumer.first_name} </h1>
what is the meaning of the $ sign in the following code:
<h1 class="title">Welcome ${consumer.first_name} </h1>
It is an expression (think of it as a means to access the value of a Java object).
${consumer.first_name}
is equivalent to
<%
out.print(consumer.getFirst_Name());
%>
Here, consumer
would be an attribute in one of the scopes (request, session etc)
Read up on Expression Language
That is one of the way to access variables. Have a look at this link.