Class 2 |
Intermediate Java 30-IT-397 |
|
Java Server Pages
-
Combines HTML and Java.
-
Have the artists write the HTML, and enclose the Java within <% and
%> tags.
-
The compiler will basically turn this into a servlet, but it allows some
freedom in separating the presentation from the logic. You don't
have to make a bunch of print statements to generate the HTML.
-
The server handles the compiling for you. The first time the page
is called, it compiles the JSP into a class. Thus, it is often a
good idea to call it once yourself as soon as you release it. You
need to give your server access to do so.
-
With JSPs,
-
You get the full access and power of Java.
-
You get the option of choosing the platform that works best for you.
If you find that a different operating system gives you better scalability
as your needs grow, you are free to upgrade without changing your code!
-
To properly show errors in Internet Explorer 5.x, choose Tools-Internet
Options-Advanced, then uncheck "Show friendly HTTP error messages".
More about JSPs

Created by: Brandan Jones
December 17, 2001