Show TOC Start of Content Area

Function documentation JSP Editor  Locate the document in its SAP Library structure

Use

In the SAP NetWeaver Developer Studio, you create JSP files in Web projects. See Creating JSP Files.

Opening the Editor

In the J2EE Explorer (for ordinary projects) or J2EE DC Explorer (for DC projects), select a JSP file and choose Open from the context menu.

The JSP editor has two tabs:

·        Preview shows how the HTML might look in a browser.

·        Source is where the source code is displayed and edited.

This graphic is explained in the accompanying text

Source Tab of the JSP Editor

Features

Tag Assistance

While you are writing a tag, a dropdown list of possible tags is displayed, from which you can select the appropriate one.

This graphic is explained in the accompanying text

Tag Assistance in the Source Tab

Formatting

The chosen formatting applies to the whole page. To format the source code, position the curser anywhere on the source code and choose Format from the context menu.

Customizing the Format

       1.      Choose Window  Preferences.

       2.      In the left pane, choose Web Editors XML/HTML Editor.

       3.      Specify the settings on the Color and Formatting tabs.

       4.      The sample code in the Preview pane will show how the new settings will look.

       5.      In the left pane, choose Web Editors XML/HTML Editor  JSP Editor.

       6.      Specify the color settings for JSP statements.

The sample code in the Preview pane shows how the new settings will look.

       7.      Choose OK.

Debugging

You can set breakpoints in JSP pages for debugging. For more information, see Debugging JSPs and Servlets.

 

End of Content Area