Buddhi
Buddhi

Reputation: 2324

JSP $ sign what does it mean

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

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

Upvotes: 0

Views: 1888

Answers (2)

Nick Craver
Nick Craver

Reputation: 630459

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.

Upvotes: 2

Darin Dimitrov
Darin Dimitrov

Reputation: 1038930

It's an expression evaluation.

Upvotes: 1

Related Questions