JSP Tutorial
|
|
|
|
| Articles Reviews JSP | |||||||||||
| Written by Bogdan V | |||||||||||
| Friday, 01 September 2006 | |||||||||||
Page 1 of 9
The prerequisites for the tutorial are: * HTML. You should be able to put together HTML pages. * Java. You should be able to program in Java.
For best progress, it is recommended that you type in all the examples presented and get them working. The early examples might seem very simple; please have patience. By actually typing in the examples and getting them to work, you will gain familiarity with the actual practical issues. Also spend some time on the exercises, these are designed to solidify your grasp of the material.
If you do not have a JSP capable web-server (sometimes known as
application servers for configuration reasons), the first step is to
download one. There are many such servers available, most of which can
be downloaded for free evaluation and/or development. Some of them
are: Blazix from Desiderata Software (1.5 Megabytes, JSP, Servlets
and EJBs) TomCat from Apache (6.7 Megabytes) WebLogic from BEA
Systems (44 Megabytes, JSP, Servlets and EJBs) Blazix
is also very small and can be easily downloaded even over a modem, will
work on all kinds of systems including Windows 98, and can be installed
in less than ten minutes.
If you don't have a server, please go get
one and install it now! JSP simply puts Java inside HTML pages.
Change its extension from ".html" to ".jsp". Now load the
new file, with the ".jsp" extension, in your browser. (But everytime you change the JSP file, it will be re-compiled again.) Of course, it is not very useful to just write HTML pages with a .jsp extension! We now proceed to see what makes JSP so useful. Adding dynamic content via expressions Write a JSP to output the values returned by System.getProperty for various system properties such as java.version, java.home, os.name, user.name, user.home, user.dir etc.
|
|||||||||||
| Last Updated ( Thursday, 06 November 2008 ) | |||||||||||
| < Prev |
|---|







