Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet code

 
Harikrishna Gorrepati
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Where do we see Servlet code after .jsp page is compiled into .java servlet code in tomcat.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the work folder.
 
Harikrishna Gorrepati
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
work folder is empty for me.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic