JSP and servlet source files are created and managed in the IDE in much the same way as other file types. Note that the filesystem containing existing JSP and servlet files needs to be mounted before you can use it. You also need to create a web module before you execute a JSP or servlet.
To create a JSP or servlet source file:
![]() |
Note that you can also create a new JSP or servlet file by right-clicking
on a directory within an existing web module, then choosing New |
WEB-INF/Classes
folder. JSP pages are typically contained in the root directory of the web
module or folders within the root directory.
![]() |
If you are creating a servlet, click Next to specify deployment values.
Note that re-using an existing servlet name will result in the deployment
descriptor ( |
If you create a servlet outside the IDE, it is treated by the IDE as an ordinary
Java class. For the servlet features to be available, you must tell the IDE
to treat this class as a servlet. From the main menu, choose Tools
Mark as Servlet. You should also make sure the servlet class is located within
the
WEB-INF/Classes
folder.
For information on other file management tasks, such as mounting and unmounting filesystems, creating and customizing templates, and searching for files, see "Managing Objects in the IDE" in the Core IDE Help Set.
See also | |
---|---|
File Location in a Web Module Editing a JSP or Servlet Source File Compiling a JSP Source File Executing a JSP or Servlet File Using .dwt Files |