• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL vs OGNL  RSS feed

 
Sekhar Chand
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to know the difference betweeb OGNL and JSTL.
We decided to use EL in our project, but we came to know these two EL are gud.
Among these two which will be good.
Thanks In Advance
Sekhar
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would probably help considerably if you'd give us a clue as to what OGNL is.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I know what it is and it ain't JSTL. No one uses OGNL over JSTL. OGNL is typically used by frameworks (Tapestry comes to mind, though they may have dumped it for T5).

OGNL is a binding and expression language that was used heavily prior to JSP 2.0 and its Expression Language. Stripes used OGNL for binding but it was soon realized for the amount it was used something custom could be written that was twice as fast so they swapped it around about the 1.4.2 release.
 
Sekhar Chand
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Greg, but can you tell me which is better
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sekhar Chand:
thanks Greg, but can you tell me which is better


Can you read my post again? JSTL and OGNL aren't the same thing. You might be able to compare JSP 2.0 EL and OGNL but they only share one common thing; an expression language. EL doesn't do any true binding like OGNL does. There is no better or worse. They all kind of solve different problems anyway.
 
Sekhar Chand
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh thank you very much greg
 
rajduvvi reddy
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Hijack removed. Please post your own question in a new post.]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!