Entering content frame

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

Use

In the Developer Studio, JSP files are usually created in Web Module projects. See Creating JSP Files.

Opening the Editor

In the J2EE Explorer, select an 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

Features

Tag Support

As you write 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

Formatting

Formatting is applied 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 will show how the new settings will look.

This graphic is explained in the accompanying text

       7.      Choose OK.

Debugging

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

 

Leaving content frame