File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes EL Questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "EL Questions" Watch "EL Questions" New topic
Author

EL Questions

Flavio Nobili
Ranch Hand

Joined: Jan 28, 2004
Posts: 58
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 ]

Java Developer
SCJP, SCJD, SCWCD, SCBCD
Adrian Pang
Ranch Hand

Joined: Feb 20, 2004
Posts: 40
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.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3
Chengwei Lee
Ranch Hand

Joined: Apr 02, 2004
Posts: 884
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.


SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EL Questions