| <?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> |
| <head> |
| <!-- /******************************************************************************* |
| * Copyright (c) 2000, 2005 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 |
| *******************************************************************************/ --> |
| <link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" /> |
| <title>Page Data view</title> |
| </head> |
| <body id="cpagedataview"><a name="cpagedataview"><!-- --></a> |
| |
| <h1 class="topictitle1">Page Data view</h1> |
| <div><p>The Page Data view provides access to data objects in JSP files.</p><div class="p">The Page Data view allows you to add, modify, or delete data objects in |
| JSP files. The types of data objects are listed below. |
| <ul><li>Standard scripting variables that are available to all JSP files: |
| <ul><li><samp class="codeph">applicationScope</samp> that allows you to add and modify attributes |
| in the application object</li> |
| <li><samp class="codeph">param</samp> that allows you to add and modify attributes to |
| be used in the page object</li> |
| <li><samp class="codeph">requestScope</samp> that allows you to add and modify attributes |
| in the request object</li> |
| <li><samp class="codeph">sessionScope</samp> that allows you to add and modify attributes |
| in the session object</li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <p>The Page Data view is, by default, shown in the bottom left corner of the |
| workbench. It shares a pane with several other views including the Outline |
| view, the Client Data view, and the Thumbnails view. </p> |
| <div class="p">You can add, delete, or modify data objects in a JSP file using the Page |
| Data view. To create and modify a data object: <ol><li>In the Page Data view, right click and select <span class="uicontrol">New</span>.</li> |
| <li>Select the type of object you want to create. An appropriate wizard opens, |
| depending on the type of object selected.</li> |
| <li>Fill in the fields of the wizard and select <span class="uicontrol">OK</span>. |
| The new object appears in the Page Data view. You will need to expand the |
| appropriate section of the Page Data view to see the new object.</li> |
| <li>Highlight the object in the Page Data view. The actions that are available |
| to the data objects include the following:<ul><li>Drag the object directly onto the JSP file. This generates the appropriate |
| controls in the JSP file. </li> |
| <li>Right-click and select <span class="uicontrol">Insert New Controls</span>. This |
| has the same effect as dragging the object onto the JSP file.</li> |
| <li>Right-click and select <span class="uicontrol">Delete</span> to remove the data |
| object from the Page Data view. This action does not delete existing data |
| object from the JSP file.</li> |
| <li>Right-click and select <span class="uicontrol">Configure</span> to modify the |
| attributes of the data object in the Page Data view. This action does not |
| change the existing data objects in the JSP file.</li> |
| </ul> |
| </li> |
| </ol> |
| </div> |
| </div> |
| <p><b class="relconceptshd">Related concepts</b><br /> |
| <a href="../../org.eclipse.platform.doc.user/concepts/concepts-5.htm">Views</a><br /> |
| <a href="cpdjsps.html">JavaServer Pages (JSP) technology</a><br /> |
| </p> |
| </body> |
| </html> |