Where to save the Images, HTML, and other static data in Tomcat?

Luigi Viggiano

Images and HTML shall be put inside the context of your application:

  • somewhere inside /jakarta-tomcat-3.2.1/webapps/your_context/
  • somewhere inside the war file of your application
war file must be put inside /jakarta-tomcat-3.2.1/webapps/

An example of tree of a web application (in a .war archive) can be:

  |   |---MANIFEST.MF
  |   |---web.xml
  |   |---jsp
  |   |   |---taglib (.tld)
  |   |---classes
  |       |---(.class/.properties)
  |   |---(.jsp/.html/.shtml)
  |   |---(.gif/.png/.jpeg)
check examples in jakarta-tomcat-3.2.1/webapps/