aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
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: 61420
    
  67

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: 16141
    
  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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet code