wood burning stoves
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 REST with Spring (video course) this week in the Spring 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: 42959
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.
I agree. Here's the link: http://aspose.com/file-tools
subject: The way from JSP page to .class file
It's not a secret anymore!