Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compiling JSP

 
Tim Smith
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What class files are need to compile a JSP?
 
Ashwin Desai
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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.
Ashwin.
 
Bharatesh H Kakamari
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
HTH
 
Randall Twede
Ranch Hand
Posts: 4369
3
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
on a practical note, I put my .jsp in the same folder as the .html files that Tomcat serves up. I use Apache/Tomcat.
 
David Cole
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Resin is also a good free web/application server
It can be found at http://www.caucho.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic