This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Tomcat and the fly likes How does the container compile jsps ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "How does the container compile jsps ?" Watch "How does the container compile jsps ?" New topic
Author

How does the container compile jsps ?

Arul Jose
Ranch Hand

Joined: Jan 14, 2005
Posts: 131
We experimented something.

1. We started the tomcat
2. removed the jdk/bin (jdk is the JAVA_HOME)
3. Made changes to the jsp file (in order to make the container re-compile the jsp)
4. We ran the application again. Its running perfectly alright. It was showing all the changes that are made to the jsp file. the changes even include additional <% java scripts %>.

So, how does the container compile these jsps?

is it copying the concerned files(like javac) from jdk folder to some other folder when the server is started using startup.sh ( in linux ). if so what is the folder? any answers?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

You didn't tell us what version of Tomcat you're running.

Starting with version 5.5, Tomcat ships with it's own compiler.
It uses the JDT compiler (from the folks at Eclipse).

From the Tomcat release notes:


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56521
    
  14

Moved to the Tomcat forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Arul Jose
Ranch Hand

Joined: Jan 14, 2005
Posts: 131
i am using tomcat 5.0.28.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How does the container compile jsps ?
 
Similar Threads
Regarding modification of jsp file.
How to compile jsp's from editplus
JRebel and Liferay
Question on Changes made in JSP to convert in servlet
web application deployment in oc4j