Mysterious Eclipse JSP Validation Errors

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

    I had the same problem and eventually got it to work by switching (with Maven) to version 2.3 of the servlet-api:

    
        javax.servlet
        servlet-api
        2.3
        provided
    
    

    Apparently 2.4 and higher don't have javax.servlet.jsp build in anymore. You might be able to find that library in another package if you still want to use 2.4 or higher.

提交回复
热议问题