File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes servlet api source code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet api source code" Watch "servlet api source code" New topic
Author

servlet api source code

Mateusz Moroz
Greenhorn

Joined: Oct 29, 2008
Posts: 21
Hi,

Does anyone know, where can I download servlet api source code? I'm interestred in HttpServletRequestWrapper and around classes sources in zip or svn entry, so I can attach it to eclipse and debug. I googled much, but no satisfy results appeared. I downloaded tomcat source codes, but there are compiled jars bundled, no theese jars sources.
Mateusz Moroz
Greenhorn

Joined: Oct 29, 2008
Posts: 21
Ok, I found it:

https://glassfish-svn.dev.java.net/source/browse/glassfish-svn/trunk/v3/web/

Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
If the application server implementation is open source (under each Glassfish and Tomcat indeed are) then you should just be able to download the sources from their homepage at the world wide web.

Maybe you downloaded the wrong Tomcat sources.
Mateusz Moroz
Greenhorn

Joined: Oct 29, 2008
Posts: 21
Maybe. I didn't find another tomcats src downloads on apache download page. The one I downloaded was from:

http://tomcat.apache.org/download-60.cgi

---> source code distributions.

The servlet api I get from glassfish is away from my interest, which is inspecting line by line what happens during processing liferay's request, because the processed line of code hits java comments /* */ .
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Mateusz Moroz wrote:Maybe. I didn't find another tomcats src downloads on apache download page. The one I downloaded was from:

http://tomcat.apache.org/download-60.cgi

---> source code distributions.
That's the correct source. So I don't see your problem here. Please elaborate.

The servlet api I get from glassfish is away from my interest, which is inspecting line by line what happens during processing liferay's request, because the processed line of code hits java comments /* */ .

Uhm. Do you realize that the Glassfish source code will only be of any use if you actually run Glassfish as application server implementation? It sounds like that you're running Tomcat.
Mateusz Moroz
Greenhorn

Joined: Oct 29, 2008
Posts: 21
Seems I downloaded the correct tomcat's source, but opened wrong zip file with jars instead of sources. That happens, when you program too much :P
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet api source code