Javatpoint Logo
Javatpoint Logo

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








Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA