error: package javax.servlet does not exist

前端 未结 6 608
鱼传尺愫
鱼传尺愫 2020-12-01 01:39

I was trying to implement a login filter in my web app with jsf 2, following this guide:

https://stackoverflow.com/tags/servlet-filters/info

after I compiled

6条回答
  •  死守一世寂寞
    2020-12-01 02:12

    maybe doesnt exists javaee-api-7.0.jar. download this jar and on your project right clik

    1. on your project right click
    2. build path
    3. Configure build path
    4. Add external Jars
    5. javaee-api-7.0.jar choose
    6. Apply and finish

提交回复
热议问题