In the SAP NetWeaver Developer Studio, you create JSP files in Web projects. See Creating JSP Files.
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.
Source Tab of the JSP Editor
While you are writing a tag, a dropdown list of possible tags is displayed, from which you can select the appropriate one.
Tag Assistance in the Source Tab
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.
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.
You can set breakpoints in JSP pages for debugging. For more information, see Debugging JSPs and Servlets.