Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL syntax ${ } vs #{ }

 
Manish Shah
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JSP specification it is mentioned that :
There are two constructs to represent EL expressions: ${expr} and #{expr}.
While the EL parses and evaluates ${} and #{} the same way, additional restrictions are placed on the usage of these delimiters in JSP pages.
An EL expression that is evaluated immediately is represented in JSP with the syntax ${}, while an EL expression whose evaluation is deferred is represented with the syntax #{}.

I am not clear about the syntax. Can any put some light on this.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can get the elaborated clarification on the Java Developer web site. Pierre Delisle and Jennifer Ball consider what distinguishes the new #{...} syntax from ${...} expressions and why there are two syntaxes rather than just one in their article.

Introducing the EL #{�} Syntax
[ September 07, 2006: Message edited by: Saif Uddin ]
 
Manish Shah
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Saif!!
 
Manish Shah
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to know whether the new EL syntax #{expr} will appear in the exam or not..
 
Sivasundaram Umapathy
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The new EL syntax belongs to JSP 2.1 specification. So it is not included in the current SCWCD exam which focuses only on JSP 2.0 specification.

Milestone, will you please change your display name according to Javaranch naming policy?.You can do it here
[ September 07, 2006: Message edited by: Sivasundaram Umapathy ]
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sivasundaram Umapathy,

Thanks for clearing up
 
Manish Shah
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Siva..

From
Milestone
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic