Tag声明URL不能带"-"问题

在开发公司基础框架时,为框架封装了一些自定义TAG。并通过在META-INF中定义*.tld文件,直接打包到组件jar包中,其他项目直接声明TAG的URL就可以使用。今天突然死活报错:找不到声明的tag。纠结了半天,发现原因我把TAG的声明URL定义中加入的"-",去除“-”,问题解决。

 

异常:

org.apache.jasper.JasperException: /admin/system/ologList.jsp(3,0) The absolute uri: http://www.feinno.com/tags/security cannot be resolved in either web.xml or the jar files deployed with this application

 

<description>Acooly framwork tags</description>

<tlib-version>3.0</tlib-version>

<short-name>form</short-name>

         <!-- 这样定义,死活找不到的。问题出在"-" -->

<uri>http://www.feinno.com/tags/security-framework</uri> 

 

        修改为:

<uri>http://www.feinno.com/tags/security</uri>

猜你喜欢

转载自acooly.iteye.com/blog/1859017
今日推荐