my dog learned polymorphism
The moose likes Servlets and the fly likes Compiling JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Compiling JSP" Watch "Compiling JSP" New topic

Compiling JSP

Tim Smith

Joined: Mar 07, 2001
Posts: 19
What class files are need to compile a JSP?
Ashwin Desai
Ranch Hand

Joined: Jul 17, 2000
Posts: 124
You need a servlet engine that does the compilation of the jsp page for you. The reference Sun JWSDK (now phased out) includes servlet.jar and xml.jar in the root dir that are used for compilation. Again, the user need not be bothered about compilation as this is done by the servlet engine when the JSP page is referenced by the webserver.
Bharatesh H Kakamari
Ranch Hand

Joined: Nov 09, 2000
Posts: 198
As mentioned in the earlier post do not use the obselete JWSDK. Instead use Tomcat. And with regards to what classes are required to compile the jsp, Tomcat which has the jsp engine does this job for you. You just need to place the .jsp file in the *required* directory.
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4351

on a practical note, I put my .jsp in the same folder as the .html files that Tomcat serves up. I use Apache/Tomcat.

Visit my download page
David Cole

Joined: Mar 07, 2001
Posts: 5
Resin is also a good free web/application server
It can be found at
I agree. Here's the link:
subject: Compiling JSP
It's not a secret anymore!