Locations for Files in Custom Web Applications

Autodeploy Directories

These directories are where you drop WAR files or directories containing Web applications. Once you restart the server, you automatically get a custom Web application whose URL prefix matches the main name of the WAR file (minus the.war extension) or the directory name. For lots more control over Web application deployment, see Section 4.1 (Registering Web Applications).

  • Tomcat.

    install_dir/webapps

  • JRun. (No autodeployment prior to version 4)

    install_dir/servers/default

  • ServletExec.

    install_dir/webapps/default

Locations for Files Within Web Applications

The following figure summarizes where you place different types of files within each of your Web applications. Again, the URLs ...

Get More Servlets and JavaServer Pages™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.