This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Tomcat and the fly likes servlet code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "servlet code" Watch "servlet code" New topic
Author

servlet code

Harikrishna Gorrepati
Ranch Hand

Joined: Sep 23, 2010
Posts: 422
Hi, Where do we see Servlet code after .jsp page is compiled into .java servlet code in tomcat.


OCPJP 6.0-81% | Preparing for OCWCD
http://www.certpal.com/blogs/cert-articles | http://sites.google.com/site/mostlyjava/scwcd |
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61310
    
  66

In the work folder.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Harikrishna Gorrepati
Ranch Hand

Joined: Sep 23, 2010
Posts: 422
work folder is empty for me.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16095
    
  21

Harikrishna Gorrepati wrote:work folder is empty for me.


I think there's a Tomcat option that determines whether or not the generated Java code for a JSP is deleted after being compiled. However, the class file should still be there in TOMCAT_HOME/work/Catalina/localhost/appname/.

JSPs are typically compiled on-demand, however, so if no one has yet requested the page, neither the Java source nor classfiles will exist yet.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
GeeCON Prague 2014
 
subject: servlet code