• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About the syntax of taglib directive

 
sukhavasi vasavi
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assume the tag library in the exhibit is placed in a web application in the path /WEB-INF/TLD/example.tld.

1.
2.<ex:hello/>
which jsp code inserted at line 1,completes the jsp code to invoke the hellotag?

<%@taglib prefix="ex" uri="http://example.com/tld/example"%>
or
<%@taglib prefix="ex" uri="/WEB-INF/tld"%>

whichone is correct please exlain?
 
S Vilish
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
uri is a name container uses to map tld file and the tag file within tld file with their usage in a jsp file.

just verify the tld file and check the value of 'uri' within that. jsp file should have the same value.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic