JSE Java Server Executive

Home Servlet Tutorial Web Services Tutorial JMS Tutorial EJB Tutorial

JSP Tutorial

What are JSPs?

Java Server Pages (JSP) is a technology that lets you mix regular, static HTML with dynamically-generated HTML. Many Web pages that are built by CGI programs are mostly static, with the dynamic part limited to a few small locations. But most CGI variations, including servlets, make you generate the entire page via your program, even though most of it is always the same. JSP lets you create the two parts separately. Here's an example:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
      <TITLE>Welcome to Our Store</TITLE>
      <H1>Welcome to Our Store</H1>
        <SMALL>Welcome,  <!-- User name is "New User" for first-time visitors -->   
          <% out.println(Utils.getUserNameFromCookie(request)); %>
          To access your account settings, click  <A HREF="Account-Settings.html">here.</A>
        <P>Regular HTML for all the rest of the on-line store's Web page.

For more info mail to dubey.yogesh@gmail.com

Copyright 2006-2007 by Elysian International Inc., India.

JSE Copyright