> -----Original Message----- > From: Eric Noriega [mailto:[EMAIL PROTECTED] > > I hadn't gotten much of an answer to the question I asked, but I > did make some headway with the EL language. I'm thinking of sending the > comments that I came up with to the JSR list, as a "first timer's > experience", but I thought I would post them here for everyone to peruse. > > Some of the problems were more my own lack of understanding, or > assumptions, and some could be the particular implementation.
I'll comment on some of what I read in your note, without including your somewhat longish note. The confusion about exactly what goes in "${}" is quite common. You figured it out. The statement that "EL can't call functions" isn't strictly true. The "functions" it calls are just the getter/setter methods determined by the JavaBeans specification. For instance, in your examples, if you have a "Locale" object that has "language", "country", and "displayName" properties, then it can implicitly call the "getLanguage()", "getCountry()" and "getDisplayName()" functions, just by referencing the property names, instead of the function names. Instead of creating an array of arrays, you could have just stored Locale objects, and referenced EL expressions like "${locale.language}", "${locale.country}" and "${locale.displayName}". I have a feeling you haven't read the JSTL specification yet. If that's the case, I suggest you do that. ==========================================================================To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com