Mysterious Eclipse JSP Validation Errors

前端 未结 16 1962
你的背包
你的背包 2021-01-30 08:50

Eclipse (Helios) occasionally marks valid looking JSP content as having errors. It seems like it often breaks when I use the tag. For example, in a JSP with just th

16条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-30 09:27

    As many of you have mentioned, the issues is around the build path and missing libraries. I found a very simple fix to this build path issue. Here is the solution: Under 'Java Build Path' in eclipse, go to the 'Order and Export' tab, and make sure that the 'Apache Tomcat v7.0' libraries (or whichever version of Tomcat you installed with eclipse) are checked. This instantly fixes the problem. No hassle with anything else. :-)

    There is no need to turn off any validation in that case either.

提交回复
热议问题