jsp - Which role plays URI in identifying JSTL tag libraries? -


when using jstl tags in .jsp files or jsf facelets have declare tag libraries want use.

example (jsp):

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 

example (jsf):

<html xmlns="http://www.w3.org/1999/xhtml"       xmlns:c="http://java.sun.com/jsp/jstl/core"> 

it said uri not play role other making namespace unambiguous , provide additional documentation. not believe this. know facelet/.jsp not load information uri via internet. correct uri must somehow used identify correct tag library.

could explain how done?

i checked this: if change 1 letter in uri exception:

org.apache.jasper.jasperexception: /todolist.jsp(10,61) pwc6188:  absolute uri: http://java.sux.com/jsp/jstl/core cannot resolved in either web.xml or jar files deployed application 

the uri defined within taglib defintion file. without correct uri reference cannot resolved. name or key.

for example core.tld

<description>jstl 1.2 core library</description>   <display-name>jstl core</display-name>   <tlib-version>1.2</tlib-version>   <short-name>c</short-name>   <uri>http://java.sun.com/jsp/jstl/core</uri> 

also define uri custom taglibs within web.xml

<taglib>   <taglib-uri>http://lelelu.org/mytag-io</taglib-uri>   <taglib-location>/web-inf/mytags-io.tld</taglib-location> </taglib> 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -