Originally posted by liqiang yang:
Hello guys,
I just passed the SCJP 5.0 and now I am working on SCWCD.
I just try to create a servlet in Eclipse, but when I import package,
I always got a error says: import javax.servlet.*; cannot be resolved. Is something I need to set up for Eclipse(version 3.3.1.1)? Anybody can help me out? Thanks in advanced.
Hey Buddy please be more specific. You didnt specify the name of the web server. I shall be more generic in my reply.
This error happened because you have not included the
j2ee jar files to your project build path in eclipse. right click on your project in the navigator->then add external jars-> and browse and select the jar file.
if you are using
tomcat select the servlet.jar from the \common\lib directory in your tomcat directory.