• 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
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

HFS page 487, question 6

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
6. Assuming the appropriate taglib directives, which are valid examples of custom tag usage?

D. <c ut value="x" />
is listed as a correct answer.
However, is not this a JSTL <c ut>? Can it be considered a custom tag as well?

Anbody pls clear it up? Thx.
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The "c:" prefix is by convention used for the core tags in JSTL, but "c:" is not a reserved prefix. Therefore, you could technically use it for a custom tag, but it would not be a good idea.
 
Cowgirl and Author
Posts: 1589
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Howdy Jessica,
This is *really* confusing terminology and we should have explained it better. JSTL *is* still an example of a custom tag... it is a set of custom tags that someone's already made for you. They are kind of standardized custom tags

On page 435, we do a wimpy job of stating that:

"Fortunately, there's a standard library of custom tags known as the JSP Standard Tag Library."

And... Paul is absolutely right as well--you *could* have your OWN custom tag named "out", that you use with a prefix of "c", so the fact that you see a tag <c ut> does not tell you the whole story. All it tells you is that this is an example of correct custom tag syntax, but unless you see the declarations in the JSP, you don't know what the prefix "c" is mapped to for a URI--it *might* be JSTL, or it might be some *other* custom tag library...

Isn't it fun?

cheers,
Kathy
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic