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.
You are missing javax.servlet
jar in your project. Download it .
Add this jar in your build path
and you will be good.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.