Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » servlet API help
servlet API help [message #174060] Wed, 12 July 2006 06:08 Go to next message
Zohar Amir is currently offline Zohar AmirFriend
Messages: 419
Registered: July 2009
Senior Member
Using WTP 1.5 (GA).
I have tomcat (5.5) configured as a server. Why can't I browse the servlet's
API (using CTRL+F2)?
Re: servlet API help [message #174077 is a reply to message #174060] Wed, 12 July 2006 13:35 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
I don't find any command assigned to CTRL+F2 in my Eclipse, but I would
guess that you will need to attach source to the servlet API jar for
what you want to work. Assuming you are using Tomcat 5.0.x or 5.5.x,
you would expand the Tomcat runtime in the Package Explorer, right-click
on the servlet-api.jar, and select Properties. Select "Java Source
Attachment" and provide the path to the source files for the servlet
API. This will likely be under the "jsr154\src\share" folder where the
servlet API is found in the Tomcat source distribution. Not being
certain of the command you want to execute, you might need to also
specify the Javadoc Location. This can be found in your Tomcat
installation within the "tomcat-docs" web application.

I recall coming across code in WTP that caches this information, so I
think you will only have to specify it once per workspace.

Cheers,
Larry

Zohar wrote:
> Using WTP 1.5 (GA).
> I have tomcat (5.5) configured as a server. Why can't I browse the servlet's
> API (using CTRL+F2)?
>
>
Re: servlet API help [message #174234 is a reply to message #174077] Thu, 13 July 2006 05:59 Go to previous message
Zohar Amir is currently offline Zohar AmirFriend
Messages: 419
Registered: July 2009
Senior Member
Thanks (again),
Sorry - it's (SHIFT + F2)...
Why can't WTP do all that by itself - the location of the docs and sources
is standard for a tomcat installation (as you guided me here). I guess it's
standard for any of the server options also.

"Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
news:e92trp$qeo$1@utils.eclipse.org...
>I don't find any command assigned to CTRL+F2 in my Eclipse, but I would
>guess that you will need to attach source to the servlet API jar for what
>you want to work. Assuming you are using Tomcat 5.0.x or 5.5.x, you would
>expand the Tomcat runtime in the Package Explorer, right-click on the
>servlet-api.jar, and select Properties. Select "Java Source Attachment"
>and provide the path to the source files for the servlet API. This will
>likely be under the "jsr154\src\share" folder where the servlet API is
>found in the Tomcat source distribution. Not being certain of the command
>you want to execute, you might need to also specify the Javadoc Location.
>This can be found in your Tomcat installation within the "tomcat-docs" web
>application.
>
> I recall coming across code in WTP that caches this information, so I
> think you will only have to specify it once per workspace.
>
> Cheers,
> Larry
>
> Zohar wrote:
>> Using WTP 1.5 (GA).
>> I have tomcat (5.5) configured as a server. Why can't I browse the
>> servlet's API (using CTRL+F2)?
Previous Topic:WTP1.5 Tomcat Lauch Error
Next Topic:Automatic update: digest.zip 404 error
Goto Forum:
  


Current Time: Tue Apr 16 11:29:43 GMT 2024

Powered by FUDForum. Page generated in 0.74549 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top