Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
10
Chapter 1 Overview of Servlets and JavaServer Pages
Listing 1.1 A sample JSP page
Welcome to Our Store

Welcome to Our Store

Welcome,
 
<%= Utils.getUserNameFromCookie(request) %>
To access your account settings, click
here.

Regular HTML for all the rest of the on line store's Web page.
1.4 The Advantages of JSP
JSP has a number of advantages over many of its alternatives. Here are a
few of them.
Versus Active Server Pages (ASP)
ASP is a competing technology from Microsoft. The advantages of JSP are
twofold. First, the dynamic part is written in Java, not VBScript or another
ASP specific language, so it is more powerful and better suited to complex
applications that require reusable components. Second, JSP is portable to
other operating systems and Web servers; you aren't locked into Windows
NT/2000 and IIS. You could make the same argument when comparing JSP
to ColdFusion; with JSP you can use Java and are not tied to a particular
server product.
Versus PHP
PHP is a free, open source HTML embedded scripting language that is some 
what similar to both ASP and JSP. The advantage of JSP is that the dynamic
part is written in Java, which you probably already know, which already has an
Second edition of this book: www.coreservlets.com; Sequel: www.moreservlets.com.
Servlet and JSP training courses by book's author: courses.coreservlets.com.






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

jsp web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Jsp Web Hosting Cheapest Web Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved