Creating an HTML File
See Also
HTML files that are used by web applications are stored under the root folder
of the web application hierarchy. In the Projects or Files window, HTML files are represented
by the
node icon.
To create an HTML file within a web application:
- Right-click any node in the Projects or Files window and
choose New > Other
from the pop-up menu.
- Under Categories, select Web. Under File Types, select HTML. Click Next.
- Type the name of your HTML file.
Do not include a filename extension as this is added automatically when the file
is created.
- Click Finish. The IDE opens the HTML file for editing in the Source Editor.
- HTML files that are in the src
directory are automatically packaged when you build your
project. HTML files are created by the IDE when you run
or debug an applet. Typically, you do not need to package these
HTML files. The IDE can filter them out when it builds the WAR file.
Right-click the project, click Packaging, click Add Filter, and
add an expression to exclude the applet HTML files.
- See Also
- About Web Applications
- Editing a JSP or HTML File
Legal Notices