Eclipse is a great IDE. When you hover your mouse over a class or method name in the Java SE API, you get contextual help for that class or method. However, if you do the same thing over a Java EE class, such as HttpServletRequest, you might not get the same effect. This is because there is no source or Javadoc attached to that class. To attach the documentation to your J2EE class as well, you can follow these steps:
-
Right-click on servlet-api.jar in your project.
-
Choose Properties from the menu.
-
In Javadoc location path, enter the URL where the Java EE documentation is located (e.g. https://java.sun.com/j2ee/1.4/docs/api/) or, alternatively, indicate the path where the Javadoc is located on your disk, such as file:/c:/path/to/your/documentation.
Hope this helps!