| <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html lang="en-us" xml:lang="en-us"> |
| <head> |
| <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> |
| <meta name="copyright" content="Copyright (c) 2000, 2006 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html. Contributors: IBM Corporation - initial API and implementation" /> |
| <meta name="DC.rights.owner" content="(C) Copyright 2000, 2006" /> |
| <meta content="public" name="security" /> |
| <meta content="index,follow" name="Robots" /> |
| <meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' /> |
| <meta content="concept" name="DC.Type" /> |
| <meta name="DC.Title" content="JavaServer Pages (JSP) technology" /> |
| <meta content="JavaServer pages, overview, dynamic Web content, generating" name="DC.subject" /> |
| <meta content="JavaServer pages, overview, dynamic Web content, generating" name="keywords" /> |
| <meta content="XHTML" name="DC.Format" /> |
| <meta content="cpdjsps" name="DC.Identifier" /> |
| <meta content="en-us" name="DC.Language" /> |
| <link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" /> |
| <title>JavaServer Pages (JSP) technology</title> |
| </head> |
| <body id="cpdjsps"><a name="cpdjsps"><!-- --></a> |
| |
| |
| <h1 class="topictitle1">JavaServer Pages (JSP) technology</h1> |
| |
| |
| <div> |
| <p>The JavaServer Pages technology enables you to generate dynamic web content, |
| such as HTML, DHTML, XHTML, and XML files, to include in a Web application. |
| JSP files are one way to implement server-side dynamic page content. JSP files |
| allow a Web server, such as Apache Tomcat, to add content dynamically to your |
| HTML pages before they are sent to a requesting browser.</p> |
| |
| <p>When you deploy a JSP file to a Web server that provides a servlet engine, |
| it is preprocessed into a servlet that runs on the Web server. This is in |
| contrast with client-side JavaScriptâ„¢ (within <samp class="codeph"><SCRIPT></samp> tags), |
| which is run in a browser. A JSP page is ideal for tasks that are better suited |
| to execution on the server, such as accessing databases or calling Enterprise Javaâ„¢ beans.</p> |
| |
| <p>You can create and edit a JSP file in the HTML editor by adding your own |
| text and images using HTML, JSP tagging, or JavaScript, including Java source |
| code inside of scriptlet tags. Typically, JSP files have the file extension |
| .jsp. Additionally, the JSP specification suggests that JSP fragment files |
| should have file extension .jspf. If this convention is not followed, the |
| JSP validator will treat JSP fragments as regular standalone JSP files, and |
| compilation errors might be reported.</p> |
| |
| <p>The <cite>Sun Microsystems JSP 1.2 Specification</cite> provides the ability |
| to create custom JSP tags. Custom tags simplify complex actions and provide |
| developers with greater control over page content. Custom tags are collected |
| into a library (taglib). A tag library descriptor file (taglib.tld) is an |
| XML document that provides information about the tag library, including the |
| taglib short name, library description, and tag descriptions. Refer to the <cite>Sun |
| Microsystems JSP 1.2 Specification</cite> for more details.</p> |
| |
| <p>To use JSP 1.2 custom taglibs, you can import the tag library .tld and |
| .jar files into your project to use them, or associate them as Web Library |
| projects. You can also reference a TLD file by using a URI.</p> |
| |
| </div> |
| |
| |
| </body> |
| </html> |