Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

jsp-api source code

 
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Friends

I am a newbie to custom tag libraries. I successfully executed my first example without any errors. Now iam very much interested in understanding how my server is executing the tld files. I mean how it is identifying the tld file.

I used debug mode in my editor(Eclipse).while debugging , the debugging gone to class files of jsp.
I wish to see the code of jsp,
i googled and unable to find the source code of jsp 2.1.

can any one help in this ........

Thanks & Regards
Vipul Kumar
 
Saloon Keeper
Posts: 22498
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Technically, you don't "execute" tld files. TLD stands for Type Library Descriptor. TLD locations were originally specified in the web.xml deployment descriptor, but for a long time now, it has been possible to package up tag libraries and supply the TLD as part of the meta-info.

Standard JSP custom tags are basically just ordinary JavaBeans with certain extensions to support the necessary functions, and TLDs to describe their available attributes. For the record, JavaServer Faces (JSF) tags started out that way, but they have since sort of degenerated into a general chaos. Leave that for another day.

When a JSP is compiled, custom tags are compiled into java code as part of the overall java servlet code that is produced. If you're using Tomcat, both the generated Java code and the compiled class end up in Tomcat's work directory. When running Tomcat under IDE debugger control, just open up the java file and set a breakpoint. Or set a breakpoint in your tag code and walk back up the stack, if you have the webapp's work directory set as one of the project source directories for IDE debugging.

In Tomcat, the actual process of compiling a JSP and its tags into a servlet, then compiling the servlet into a class is handled by a component named "Jasper". You don't actually need to know how it works in detail, but if your curiosity runs in that direction, download the Tomcat source code.
 
vipul John
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply Tim.

I will post back again with successful or unsuccessfull result..

Any way you did not tell me where to download the Tomcat source code..


Thanks & Regards
Vipul Kumar.
 
vipul John
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

I found Apache site useful for downloading Tomcat source code.

Apache site is providing its SVN(Sub version Reporsitory) url.But , i am unable to use that.

Apache Web Site

SVN is asking host name.which name i need to provide.

Anyone here in this forum downloaded tomcat source code..
please help in downloading tomcat source code.

Thanks & Regards,
Vipul Kumar.
 
Saloon Keeper
Posts: 6594
161
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Searching for "download tomcat source code" or some such phrase should get you results much quicker than waiting for a reply in a forum.
 
vipul John
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Every one..

I have downloaded it already and thanks for everyone...

Thanks & Regards,
Vipul Kumar.
 
A tiny monkey bit me and I got tiny ads:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic