Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

The resources folder is located in the module structure at:

Code Block
/omod/src/main/webapp/resources

In a non-mavenized module, it would be at

Code Block
/web/module/resources

. This folder should may contain javascript, css, images, etc.

A file named taskpane.css in the resources folder for the module formEntry can be accessed via http://../openmrs/moduleResources/formEntry/taskpane.css.

To add it to your jsp page just do the following.

Code Block

<openmrs:htmlInclude file="/moduleResources/formEntry/taskpane.css"/>

The reason the files cannot be kept in the folder /web/module along with the other jsp files is due to the Spring redirection taking place. The jsp files are accessed either by a redirect from their corresponding .htm file or via setup in the module's application context file.