转自 http://blog.csdn.net/z69183787/article/details/38368033

 

在web.xml不认<taglib>解决办法:

 

如果头是这样的:

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://Java.sun.com/dtd/web-app_2_3.dtd">    

直接在后面加   

<taglib>  

  <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>  

  <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>  

</taglib>  

如果头是这样的:

<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">  

在后面加   

<jsp-config>  

<taglib>  

  <taglib-uri>/WEB-INF/validator-user.tld</taglib-uri>  

  <taglib-location>/WEB-INF/validator-user.tld</taglib-location>  

</taglib>  

</jsp-config>  

 

转自  http://guoyiqi.iteye.com/blog/85387

 

 

相关文章:

  • 2022-12-23
  • 2021-12-19
  • 2021-07-03
  • 2022-12-23
  • 2021-06-10
  • 2021-07-12
  • 2021-10-25
猜你喜欢
  • 2021-09-24
  • 2021-10-19
  • 2021-12-03
  • 2022-01-15
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案