Viewing a JSP File's Servlet
See Also
When you execute a JSP file, the server translates the contents of
the JSP file into a Java servlet and compiles the servlet. You
can view, but not edit, the translated servlet source in the Source Editor.
You cannot set breakpoints in the servlet source code. You
can set breakpoints in the JSP file only.
To view the servlet generated from a JSP file:
- Run the JSP file.
- In the Projects window, right-click the JSP file and choose View Servlet.
|
The View Servlet menu item is enabled only if the target
server has successfully executed the JSP file and the target server supports the viewing of translated
servlets. |
The servlet appears in the Source Editor. This servlet is based on the
state of the JSP file when the file was last executed. If you have changed
the JSP file but have not executed it, the servlet does not reflect the
changes. While this file is opened, if you execute the JSP file or if
you change the target server
in the Run section of the Project Properties dialog box,
the file changes to reflect the latest translated
servlet on the selected server.
- See Also
- About JavaServer Pages Technology
- About Servlets
Legal Notices