• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Do JSP need a java complier?

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just read in Ed Roman's book that JSP don't need java complier?
Does he mean JSP shouldn't be complied and hence they don't need a java complier. But I guess when you run a JSP program from a browser you do need and java plug-in in the browser, don't you??
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A JavaServer Page is like an HTML page with interspersed Java code. The JSP engine (or container) translates the JSP to a Java source code file and then needs a compiler to compile to a Java class. The class then executes and produces output that combines the HTML markup with Java output.
So - JSP requires a compiler on the server. On the browser end the only way to tell that JSP was involved is the .jsp file type. As far as the browser is concerned it is showing HTML.
Once the class has been compiled and loaded, it continues to run just like a servlet.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic