Difference between version and version      View first change»»

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

At line 7 changed 1 line.
Example 1:
!Example
At line 10 removed 16 lines.
<taglib>
<taglib-uri>mytags</taglib-uri>
<taglib-location>/WEB-INF/jsp/mytaglib.tld</taglib-location>
</taglib>
</jsp-config>
}}}
Declare this in your JSP file using:
{{{
<%@ taglib prefix="mytags" uri="mytags" %>
<mytags:sometag>Test</mytags:sometag>
<mytags:othertag />
}}}
Example 2:
{{{
<jsp-config>
At line 32 removed 6 lines.
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 />
}}}
At line 39 changed 1 line.
The <taglib> section is no longer required in [web.xml] since JSP 2.0 / Servlets 2.4. See the article [Removing taglib from web.xml] for further details.
!Notes
* The <[taglib|web.xml.Taglib]> section is no longer required in [web.xml] since JSP 2.0 / Servlets 2.4. See the article [Removing taglib from web.xml] for further details.
At line 41 changed 2 lines.
!Parent-elements:
* <[taglib|web.xml.Taglib]> - container element which specifies the taglib-uri and taglib-location for declaring a JSP Custom Tag Library
!Parent-element:
* <[taglib|web.xml.TagLib]> - container element which specifies the taglib-uri and taglib-location for declaring a JSP Custom Tag Library
At line 24 added 1 line.
* <[taglib-uri|Web.xml.TagLibUri]> - a unique specifier for your taglib, for use in the declaration in your JSP files
navigation
metawerx specific
search
Share
tools
help

referring pages

Share