blob: 7d0a869e5fd2b94600ae98aaf9fb499c8767dc09 [file] [log] [blame]
kprice9c922d82006-08-30 22:07:19 +00001<?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">
2<html lang="en-us" xml:lang="en-us">
syeshin17ed4a62005-07-25 17:10:24 +00003<head>
kprice9c922d82006-08-30 22:07:19 +00004<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
kprice02ec4b02008-05-14 23:26:58 +00005<meta name="copyright" content="Copyright (c) 2000, 2008 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" />
6<meta name="DC.rights.owner" content="(C) Copyright 2000, 2008" />
kprice9c922d82006-08-30 22:07:19 +00007<meta content="public" name="security" />
8<meta content="index,follow" name="Robots" />
9<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))' />
10<meta content="task" name="DC.Type" />
11<meta name="DC.Title" content="Enabling content assist for JSP files" />
12<meta name="abstract" content="Having the proper files defined in the Java build class path is essential for content assist to work properly in JSP files. It is also essential for the links builder to be able to correctly resolve links to servlets or Java beans in JSP and HTML files." />
13<meta name="description" content="Having the proper files defined in the Java build class path is essential for content assist to work properly in JSP files. It is also essential for the links builder to be able to correctly resolve links to servlets or Java beans in JSP and HTML files." />
kprice02ec4b02008-05-14 23:26:58 +000014<meta content="content assistance, enabling for JSP files, JSP files, enabling content assistance" name="DC.subject" />
15<meta content="content assistance, enabling for JSP files, JSP files, enabling content assistance" name="keywords" />
kprice9c922d82006-08-30 22:07:19 +000016<meta scheme="URI" name="DC.Relation" content="csrcedt006.html" />
17<meta scheme="URI" name="DC.Relation" content="csrcedt004.html" />
18<meta scheme="URI" name="DC.Relation" content="tsrcedt005.html" />
19<meta scheme="URI" name="DC.Relation" content="tsrcedt028.html" />
20<meta scheme="URI" name="DC.Relation" content="tsrcedt000.html" />
21<meta content="XHTML" name="DC.Format" />
22<meta content="tsrcedt023" name="DC.Identifier" />
23<meta content="en-us" name="DC.Language" />
24<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
25<title>Enabling content assist for JSP files</title>
syeshin379dd3e2005-08-26 04:28:44 +000026</head>
syeshin17ed4a62005-07-25 17:10:24 +000027<body id="tsrcedt023"><a name="tsrcedt023"><!-- --></a>
28
kprice9c922d82006-08-30 22:07:19 +000029
30<h1 class="topictitle1">Enabling content assist for JSP files</h1>
31
32
33
34<div><p>Having the proper files defined in the Java™ build class path is essential for content
35assist to work properly in JSP files. It is also essential for the links builder
36to be able to correctly resolve links to servlets or Java beans
37in JSP and HTML files.</p>
38
39<div class="section">To enable content assist for JSP files:</div>
40
41<ol>
42<li class="stepexpand"><span>To determine whether the build path is correct, select <span class="uicontrol">Properties</span> from
syeshin17ed4a62005-07-25 17:10:24 +000043the project's pop-up menu. </span></li>
kprice9c922d82006-08-30 22:07:19 +000044
45<li class="stepexpand"><span>Select <span class="uicontrol">Java Build Path</span>, and then the <span class="uicontrol">Libraries</span> page. </span>
46 You should see the following files:<ul>
47<li>j2ee.jar</li>
48
syeshin17ed4a62005-07-25 17:10:24 +000049<li>rt.jar </li>
kprice9c922d82006-08-30 22:07:19 +000050
syeshin17ed4a62005-07-25 17:10:24 +000051<li>servlet.jar</li>
kprice9c922d82006-08-30 22:07:19 +000052
syeshin17ed4a62005-07-25 17:10:24 +000053<li>webcontainer.jar</li>
kprice9c922d82006-08-30 22:07:19 +000054
syeshin17ed4a62005-07-25 17:10:24 +000055</ul>
56</li>
kprice9c922d82006-08-30 22:07:19 +000057
58<li class="stepexpand"><span>If they are not present, add them as External JAR files. You may
syeshin17ed4a62005-07-25 17:10:24 +000059have your own versions of these files, depending on the level of JDK or Servlet
60API for which you are developing.</span></li>
kprice9c922d82006-08-30 22:07:19 +000061
62<li class="stepexpand"><span>If your Web applications reference other JARs, you can place them
63in the build path as follows:</span>
64<ol type="a">
65<li><span>Use the <span class="uicontrol">Add JARs</span> button on the Library
syeshin17ed4a62005-07-25 17:10:24 +000066page. You must ensure that the JAR file is available to the server by properly
67configuring the server.</span></li>
kprice9c922d82006-08-30 22:07:19 +000068
syeshin17ed4a62005-07-25 17:10:24 +000069<li><span>Add the JARs to the <span class="filepath">WEB-INF/lib</span> directory.
70They will be automatically added to the build path and deployed to the server
71in as part of the project WAR.</span></li>
kprice9c922d82006-08-30 22:07:19 +000072
syeshin17ed4a62005-07-25 17:10:24 +000073</ol>
kprice9c922d82006-08-30 22:07:19 +000074
syeshin17ed4a62005-07-25 17:10:24 +000075</li>
kprice9c922d82006-08-30 22:07:19 +000076
syeshin17ed4a62005-07-25 17:10:24 +000077</ol>
kprice9c922d82006-08-30 22:07:19 +000078
syeshin17ed4a62005-07-25 17:10:24 +000079</div>
kprice9c922d82006-08-30 22:07:19 +000080
81<div><div class="relconcepts"><strong>Related concepts</strong><br />
82<div><a href="csrcedt006.html" title="Content assist helps you insert or finish a tag or function or finish a line of code in a structured text editor. The placement of the cursor in the source file provides the context for the content assist to offer suggestions for completion.">Content assist</a></div>
83<div><a href="csrcedt004.html" title="Structured text editor is any of several text editors that you can use to edit various markup languages such as HTML, JavaScript, or XML.">Structured text editors for markup
84languages</a></div>
syeshinaaa21932005-09-22 17:13:22 +000085</div>
kprice9c922d82006-08-30 22:07:19 +000086<div class="reltasks"><strong>Related tasks</strong><br />
87<div><a href="tsrcedt005.html" title="To get help in adding markup to a file, you can use content assist in a structured text editor. Content assist helps you insert or finish a tag or function or finish a line of code in a structured text editor.">Getting content assistance in structured
88text editors</a></div>
89<div><a href="tsrcedt028.html" title="JSP content assist provides several templates, or chunks of predefined code, that you can insert into a file. You can use the default templates as provided, customize the default templates, or create your own templates.">Adding and removing JSP templates</a></div>
90<div><a href="tsrcedt000.html" title="You can edit text coded in markup languages with a structured text editor. This is a generic term for several editors that you can use to edit any of several markup languages, such as HTML.">Editing text coded in markup languages
91- overview</a></div>
92</div>
93</div>
94
syeshin17ed4a62005-07-25 17:10:24 +000095</body>
96</html>