Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

When I need to use Standard Actions, EL or JSTL?  RSS feed

 
Karim Kiswarday
Ranch Hand
Posts: 50
Eclipse IDE Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,
I'm again here...

I'm continuing to study servlet and JSP and I'm confusing about Standard Actions (SA), EL and JSTL.

I know that EL is more powerful than SA and I think I can do anything with EL, but sometimes I see JSP with EL and SA mixed.
Why?

Furthermore I know that JSTL is more powerful than EL, but also here I find JSTL and EL (or SA) mixed together.

What script tags I need to use?
Can I use JSTL only? or do I have to mix this three technology together?

At the beginning there was only the scriptlet, ok, they are a nightmare but why Sun with the JSP 2.0 introduced Standard Actions, EL and JSTL?
Could they create only one type of script tag?

I don't understand this messy.

Thanks
Karim
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65828
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Karim Kiswarday wrote:Furthermore I know that JSTL is more powerful than EL, but also here I find JSTL and EL (or SA) mixed together.

This statement makes no sense. The JSTL and EL each work together to get the job done. Neither is a replacement for the other, and there's no choice about which to use. You use both, together, to get the job done.

It's like asking "Which tool should I use? the hammer or the saw?" You use both.

Standard actions like getProperty and setProperty are carry-overs from JSP 1.x and should no longer be used. However, there are other standard actions (include, for example) that are not replaced by the introduction of the JSTL and EL.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!