• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSTL

 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 836
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
reply
    Bookmark Topic Watch Topic
  • New Topic