taglib-location爆红
时间: 2023-09-09 21:07:31 浏览: 163
taglib-location爆红是因为在jbuilder中进行了校验,对web.xml进行了一些校验,当taglib描述符放在了错误的位置时会提示错误。正确的写法是将taglib描述符放到<jsp-config></jsp-config>标签中。可以通过两种方法解决这个问题。第一种方法是删除错误的描述符,保留<web-app>标签。第二种方法是将<taglib></taglib>用<jsp-config></jsp-config>包括起来,这样也不会提示错误。在<jsp-config>标签中,可以像下面这样配置taglib-location:[1]
<jsp-config>
<taglib>
<taglib-uri>/cms4j</taglib-uri>
<taglib-location>/WEB-INF/tlds/cms4j.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/oscache</taglib-uri>
<taglib-location>/WEB-INF/tlds/oscache.tld</taglib-location>
</taglib>
</jsp-config><span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [web.xml配置taglib标签出错](https://blog.csdn.net/iteye_1278/article/details/81696351)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [JSP 标准标签库(JSTL)](https://blog.csdn.net/qq_38039015/article/details/82078979)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [pager-taglib-2.0.rar](https://download.csdn.net/download/FROM_my_world/16770221)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文