|
The John Hopkins University provides a detailed tutorial on servlets and JSP. Find out more about this in our John Hopkins University Sevlet and JSP Tutorial
Using JSP is as easy as uploading your .jsp files to the correct location on the server.
For example, suppose you have a web site called www.stuff.com and a User Account called "crafts" with a Virtual Server called "artsy". If you have a .jsp file that needs to run when site visitors hit the URL http://www.stuff.com/origami/prodlist.jsp, just use FTP to upload the prodlist.jsp file into the /home/crafts/www/artsy/origami directory.
The next time a visitor hits the URL, a .java file will automatically be created from your .jsp file, and put into your JVM's servlet directory. From that .java file, a .class will be compiled and run. As long as the .jsp file you uploaded doesn't change, it won't re-compile, and will just run as a servlet.
Sample .jsp pages are installed on your site.
The JRun Scripting Manual in the Downloads section of this site contains more details about how JSP is implemented. There are also more details about using JSP in Java Server Pages section of the
FAQ
|