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/
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact