This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

When to use c:out tag?  RSS feed

 
Tony Smith
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Isn't <cut value="${customer.lastName}"/> same as ${customer.lastName}? When is it necessary to use cut ?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66204
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tony Smith:
Isn't <cut value="${customer.lastName}"/> same as ${customer.lastName}? When is it necessary to use cut ?


Prior to JSP 2.0 and JSTL 1.1, you couldn't use the EL outside of the JSTL. So I assume your question only applies to JSP 2.0.

And I'm going to give you enough clues to answer the question yourself. Grab a copy of the JSTL Specification (link in the JSP FAQ if you don't already have a copy, which you should if you are writing JSPs) and look up the <cut> tag.

What do you see that could be the answer to your question?
[ August 05, 2007: Message edited by: Bear Bibeault ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!