tags:

views:

19

answers:

2
<p>Greetings, it is now <c:out value="${now}"/></p>

In this jsp code what is the $ sign actually doing?

+1  A: 

It's an expression evaluation.

Darin Dimitrov
+1  A: 

It Identifies it as an expression, an expression is of the format ${....}, so it's placing your now variable in the page (HTML encoded, since you're using <c:out>).

For the <c:out> encoding comment: You can grab the full spec here, or if you want to learn more about JSTL in general, start here.

Nick Craver
JSTL should not to be confused/mixed with EL.
BalusC
@BalusC - I was referring to the `<c:out>` encoding comment, sorry that wasn't clear, updated.
Nick Craver