• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ Mock question On page 487

 
Tiffiny Yang
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On page 487 of HFSJ book , there is question:
Assuming the appropriate taglib directive, which are valid examples of custom tag usage?

The one of the correct answers is <c ut value="x" />.

I don't why. Isn't that <c ut... is standard JSTL?

Any body knows?

Thanks
Tiffiny
 
Vipul Tulsulkar
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
This might help you

To use the core library, use the following directive:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

You must also put the corresponding .tld file for each tag library in your /WEB-INF directory and use the
taglib element in your web.xml file to include the tag library:
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tld/core.tld</taglib-location>
</taglib>

Regards,
Vipul
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is standard JSTL?

Yes, but isn't JSTL tags custom tags ? After all, they have a class, extending the appropriate tag class. They have a tag library descriptor. So ?
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic