Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It is not obvious, but the working directory for the page being loaded is not decorators. When hours.jsp or menu.jsp is being loaded the working directory is WebContent/data.

As such, it is recommended to use full paths for references in the must be used when referring to external files in decorator files.

However, if you ever decide to change your context root (that is /cafemirabeau) you must update your decorator files accordingly. Luckily the idea of using full paths for global resources is common and there are a number of options.

...