Article:
 |
|
JSP 2.0: The New Deal, Part 1
|
| Subject: |
|
EL - I just don't get it! |
| Date: |
|
2003-11-08 15:44:57 |
| From: |
|
psgivens
|
Response to: EL - I just don't get it!
|
|
Yes, you are missing some thing. An expression language allows a developer to sprinkle necessary logic where a programming language should not be. It allows for good MVC design without making the "view" any less robust.
Also, because nested <> brackets don't make sense, the el expresion make much more sense than the JSP version.
<option value="3"
${param.artist == 3 ? 'selected' : ''}
>
<option value="3"
<%=param.artist == 3 ? "selected" : "" %>
>
Oh, and of course you are missing the main point. JSPs by nature are a templating technology, and as such, need a good templating language so that they are not muddied by code. Perl and .NET have very good ELs, why not Java?
Phillip S. Givens
|
Showing messages 1 through 1 of 1.
-
EL - I just don't get it!
2003-12-08 09:45:29
anonymous2
[View]
I hate to break it to you, but EL IS code. It may be more limited in functionality than Java, but it's still code.