Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Murach's Java Servlets and JSP this week in the Servlets 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: 60748
    
  65

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: 15950
    
  19

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: servlet code
 
Similar Threads
getServletConfig() does not work
How can a form be populated on JSP start-up?
ServletOutputStream is not working?
servlet programming problem in Eclipse
how to run a servlet