xml描述文件中指定对标签的引用时:

<taglib xmlns="http://java.sun.com/xml/ns/j2ee" >

XXXXXX

</taglib>

出现了以下错误:

cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'.

百度,发现<taglib>是<jsp-config>的子元素,需要将其写在<jsp-config></jsp-config>之间。

改为:

<jsp-config>

<taglib xmlns="http://java.sun.com/xml/ns/j2ee" >

XXXXXX

</taglib>

</jsp-config>

之后解决。

相关文章:

  • 2022-12-23
  • 2021-05-22
  • 2021-08-08
  • 2022-01-23
  • 2021-12-30
  • 2022-01-09
  • 2022-12-23
猜你喜欢
  • 2021-04-14
  • 2022-12-23
  • 2021-06-10
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
相关资源
相似解决方案