I've a dynamic web app in Eclipse that is using Tomcat as runtime environment.
I cannot add Javadoc path Tomcat Servlet API: as appears, the edit button is always disabled!
alt text http://filaty.com/i/1005/80306/tom.JPG
For adding a jar file, right click on your project -> Build Path -> Configure Build Path -> click on Libraries tab in Java Build Path -> click on Add External JARs button -> select the servlet-api. jar file under tomcat/lib -> ok. Now servlet has been created, Let's write the first servlet code.
In Package Explorer of your project go to Java Resources > Libraries. Rightclick servlet-api.jar
, choose Properties and specify the source location there (the apache-tomcat-x.x.x-src.zip
file).
Another way is to just open any Servlet API class using Ctrl+Shift+T or by Ctrl+Click on any import/declaration in existing code and then click the Attach Source... button and specify it there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With