Mysterious Eclipse JSP Validation Errors

前端 未结 16 1985
你的背包
你的背包 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:05

    Solution for eclipse dependencies which should not be deployed is adding UserLibrary container, and include it in dependent projects.

    1. Create dir e.g /home/user*/eclipse-deps/ and copy jsp-api.jar from */tomcat/lib dir
    2. In the Eclipse go to project properties->build path, and create new "UserLibrary" eg. IdeDeps.
    3. Include /home/user/eclipse-deps/ in IdeDeps library, and include user library in all projects which are dependent on jsp-api.jar (in classpath: < classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/IdeDeps"/ >)

    You can do that for all *.jars which should not be deployed, but eclipse need it for validation purpose.

提交回复
热议问题