Difference between version and version      View first change»»

Back to Web.xml.TagLib, or Web.xml.TagLib version history

At line 3 changed 1 line.
This element specifies the <[taglib-uri|web.xml.TagLibUri]> and <[taglib-location|web.xml.TagLibLocation]> for declaring a JSP Custom Tag Library.
This parent element specifies the <[taglib-uri|web.xml.TagLibUri]> and <[taglib-location|web.xml.TagLibLocation]> for a JSP Custom Tag Library.
At line 7 changed 1 line.
Example:
!Example 1
At line 16 added 6 lines.
Declare this in your JSP file using:
{{{
<%@ taglib prefix="mytags" uri="mytags" %>
<mytags:sometag>Test</mytags:sometag>
<mytags:othertag />
}}}
At line 17 changed 1 line.
!Parent-elements:
!Example 2
{{{
<jsp-config>
<taglib>
<taglib-uri>http://metawerx.net/mapp/taglibs</taglib-uri>
<taglib-location>/WEB-INF/mapp.tld</taglib-location>
</taglib>
</jsp-config>
}}}
This taglib can be used in your JSP file as follows:
{{{
<%@ taglib prefix="mapp" uri="http://metawerx.net/mapp/taglibs" %>
<mapp:sometag>Test</mapp:sometag>
<mapp:othertag />
}}}
!Parent-element:
navigation
metawerx specific
search
Share
tools
help

referring pages

Share