• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

EL Questions

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I was prepared for the SCWCD 1.3 exam. But, I've realized that there is a SCWCD 1.4. So I'm studing some new topics like EL and JSTL.

One thing I don't understan is: why (or when) should I use EL instead of JSP expressions?
Doesn't the following code do the same thing??





Thanks
[ July 29, 2004: Message edited by: Fl�vio Fran�a ]
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my opinion (which might not be right), EL is much "simplified" because it hides ugly details from you. In your example, product can be a bean, or it can be a map... it can reside in page, request, session or application scope; all these have to be handled if you are using a JSP expression.
 
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The whole idea was to minimise the usage of scriplets on the JSP. That way, a non-Java guy could easily learn how to use JSTL & custom tags to author a JSP without needing to know deeply into Java.
 
This is my favorite show. And this is my favorite tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic