Locating Java Servlet Files Generated from JSP Files

Viewing generated Java servlet code is an important part of the JSP development process.

To view the generated servlet files:

  1. Start the server and deploy your application.
  2. In a web browser, visit the target JSP file.
  3. When the server is started using Workshop, the location of the generated JSP servlet code is:
    <path_to_workspace>/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/<server_domain_name>/work/<project_name>/jsp_servlet/

When the server is started outside of Workshop, the generated servlet source is placed in a directory under the server domain:

    <path_to_server_domain>/servers/<server_name>/tmp/_WL_user/
    

Still need help? Post a question on the Workshop newsgroup.