Locations for Files in the Default Web Application

This section summarizes where you place files when you are not using custom Web applications (i.e., when first testing things out). Note that the URLs cited assume that you have changed your server’s port to 80 as described in Section 1.3.

Individual Classes that Do Not Use Packages

  • Tomcat.

    install_dir/webapps/ROOT/WEB-INF/classes

  • JRun.

    install_dir/servers/default/default-app/WEB-INF/classes

  • ServletExec.

    install_dir/Servlets

  • Corresponding URL.

    http://host/servlet/ServletName

Individual Classes That Use Packages

  • Tomcat.

    install_dir/webapps/ROOT/WEB-INF/classes/packageName

  • JRun.

    install_dir/servers/default/default-app/WEB-INF/classes/

    packageName

  • ServletExec Directory.

    install_dir/Servlets/packageName

  • Corresponding URL.

    http://host/servlet/packageName.ServletName

Classes That Are Bundled in JAR Files

  • Tomcat.

    install_dir/webapps/ROOT/WEB-INF/lib

  • JRun.

    install_dir/servers/default/default-app/WEB-INF/lib

  • ServletExec.

    install_dir/Servlets

  • Corresponding URLs (Servlets).

    http://host/servlet/ServletName

    http://host/servlet/packageName.ServletName

HTML and JSP Pages (No Subdirectories)

Images, style sheets, and other Web content go in the same places.

  • Tomcat.

    install_dir/webapps/ROOT

  • JRun.

    install_dir/servers/default/default-app

  • ServletExec.

    install_dir/public_html

  • Corresponding URLs.

    http://host/SomeFile.html

    http://host/SomeFile.jsp

HTML and JSP Pages (In Subdirectories)

Images, style sheets, and other Web content go in the same places.

  • Tomcat.

    install_dir/webapps/ROOT/someDirectory

  • JRun.

    install_dir/servers/default/default-app/someDirectory

  • ServletExec.

    install_dir/public_html/someDirectory

  • Corresponding URLs.

    http://host/someDirectory/SomeFile.html

    http://host/someDirectory/SomeFile.jsp

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.156.235