views:

174

answers:

2

I've a dynamic web app in Eclipse that is using tomcat s a runtime environment.

I cannot add javadoc path tomcat Servlet API

as appears, the edit button is always disabled!

alt text

+2  A: 

You could download the source jars for the servlet api from Maven and either build your own javadoc jar or just use the sources.

sal
Thanks too much :)
Mohammed
+2  A: 

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.

BalusC