-1

Out issue picture 2Picture 2

Hi, Issue in the first picture has been resolved however, there is another issue occuring when I type out.println statement. Attaching picture 2 for reference.

  • 1
    did you import the necessary classes? – SpringLearner Nov 17 '15 at 07:20
  • There is an `x` on an `import` statement, but Eclipse doesn't show all the imports unless you tell it to. Please open up the `import` (click on the `+` sign) and tell us about the `import` statement that Eclipse doesn't like. – ajb Nov 17 '15 at 07:22

2 Answers2

1

You are missing javax.servlet jar in your project. Download it.

Add this jar in your build path and you will be good.

See Also

Community
  • 1
  • 1
RockAndRoll
  • 2,247
  • 2
  • 16
  • 35
0

Follow this link http://mvnrepository.com/artifact/javax.servlet/javax.servlet-api/3.0.1 and download the servlet jar that you need in order to allow your code to access the necessary repositories. Next up, add this .jar file to your project's classpath by Right click on project->build path->configure build path->switch to the libraries tab->add external jars and browse to the location where you downloaded the necessary .jar file. Further, go ahead and make a maven update on your project, if it is a maven project, or if not, then simply refresh your project. That should solve your issue.

TheLuminor
  • 1,411
  • 3
  • 19
  • 34