trainingtrains Logo

91-9990449935

 0120-4256464

Custom URI in JSP Custom Tag

We can use the custom URI, to tell the web container about the tld file. In such case, we need to define the taglib element in the web.xml. The web container gets the information about the tld file from the web.xml file for the specified URI.

Example to use custom URI in JSP Custom Tag

In this example, we are going to use the custom uri in the JSP file. For this application, we need to focus on 4 files.

  • index.jsp
  • web.xml
  • mytags.tld
  • PrintDate.java
index.jsp

web.xml

mytags.tld

PrintDate.java