Women in Technology

Hear us Roar



Article:
  JSP 2.0: The New Deal, Part 1
Subject:   EL - I just don't get it!
Date:   2003-11-13 18:20:51
From:   dhinojosa
Response to: EL - I just don't get it!

The other value, is object reference navigation where you didn't have that before. To me that is the most valuable aspect of JSTL.


For example
<c:out value="${employee.address.zipCode}"/>
<c:out value="${employee.401k.provider.address.zipCode}"/>


This is far better than <jsp:getProperty> as you can only inspect only one level deep.

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • but why is its failure mode so unusable
    2003-11-15 22:59:51  anonymous2 [View]

    I used the JSTL stuff last year, and ended up hating that expression language for the bugs it gave me that took ages to track down.

    EL says 'if something evals to null, the statement evaluates to empty'. Typos turn expressions to null. Errors in your java code where things are initialized and return null, turn expressions to null. Which makes it really hard to track down where is the error in employee.401k.provider.address.zipCode

    For all the expressiveness of the language, if it is hard to develop working code, I dont see the point.

    -steve loughran
    • but why is its failure mode so unusable
      2003-11-29 22:52:16  anonymous2 [View]

      In an MVC environment you can see what evaluates to null in a servlet before rendering to JSP.