You access the application preview using the Web App Preview, provided with the
embedded Jetty server. You can quickly check on your application and open it in the default
browser.
Procedure
-
To test the new application with the application preview in an embedded Jetty server,
right-click the HTML file or the project node and choose . Everything is configured automatically.
-
To refresh after having changed a file of your application, choose
Refresh on the left hand side of the preview editor
to refresh the preview.
-
To check the files of your application project in an external browser, choose
Open in external browser on the right hand side of
the preview editor. This function opens the external browser which is specified
in the Eclipse preferences under . This is usually the default browser of your PC. For other
external browsers, you can also copy the URL from the text field of the editor
to the external browser.
Open in External Browser

Note
Before deploying an application that has been created by using the Eclipse application
development tool on a Java server, ensure to adapt the
web.xml file in the <WebContent folder
name>/WEB-INF folder of the application by removing the
mapping to the test resources. Test resources should only be used during
testing. Remove or comment the following lines:
#!xml <servlet-mapping>
<servlet-name>ResourceServlet</servlet-name>
<url-pattern>/test-resources/*</url-pattern>
</servlet-mapping>