wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes The way from JSP page to .class file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "The way from JSP page to .class file" Watch "The way from JSP page to .class file" New topic

The way from JSP page to .class file

Peter Braun
Ranch Hand

Joined: Feb 09, 2005
Posts: 57

While I had been reading about Lifecycle of JSP a question came to my mind: How can the Container compile a .java class translated from .jsp?
The Java API doesn't support compilation, does it? Does it call the javac complier in a shell?

I know it's not important, I'm just curious.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41133
Yes, it uses the same classes that make up the core of javac. They can be used directly if one knows the API. They're somewhere in the com.sun.* hierarchy, so you shouldn't be using them, of course (although they work just fine). If you look through the jar files that make up Tomcat, you'll find them.

Ping & DNS - my free Android networking tools app
subject: The way from JSP page to .class file
Similar Threads
Setting an HTTP header from within a jsp
I have a dll that I wan to load in jsp
where are the equivalent .java and .class file are stored ?
Is this thread dump indicating tomcat is low on memory?
repetedly calling a servlet from another servlet