Where to save the Images, HTML, and other static data in Tomcat?
Created May 4, 2012
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:
war-file | |----META-INF | |---MANIFEST.MF | |---WEB-INF | |---web.xml | |---jsp | | |---taglib (.tld) | |---classes | |---(.class/.properties) |---jsp | |---(.jsp/.html/.shtml) | |---images | |---(.gif/.png/.jpeg) | |---binaries |---(.zip/.tar/...)check examples in
jakarta-tomcat-3.2.1/webapps/