• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The way from JSP page to .class file

 
Peter Braun
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

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.

Peter
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic