• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

JSTL  RSS feed

 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i worked with JSTLs i opened TLD files.i have seen <rtexprvalue> tag.what is that?
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
 
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It stands for "RUN-TIME EXPRESSION VALUE"
It's value determines whether the attribute can be a JSP expression or not.
 
Author
Ranch Hand
Posts: 836
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
rtexprvalues are complicated a little by the different JSP versions; prior to JSP 2.0, the expression language wasn't understood natively by the container - only the JSTL 1.0 EL library (which provides its own EL parser) used and supported it.

So, in a pre-JSP 2.0 container, rtexprvalues determine whether JSP scripting elements (of the form <% ... %> or one of the JSP document alternative elements) can be used for attribute values.

As of JSP 2.0, rtexprvalues also include EL expressions, which are now natively understood and parsed by the container. Hence, attempting to use either a JSP scripting element or an EL expression in an attribute whose rtexprvalue is false will lead to a translation error.

If you are using a pre-JSP 2.0 container, use the 1.0 version of JSTL (containing two libraries, RT and EL). Otherwise, use the 1.1 version of JSTL (which has only one common library).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!