Precompiling JSP pages

You might not need to make changes to JSP files. For example, Jira supports configuring an announcement banner and configuring the look and feel of your Jira applications.

Before you begin

Become familiar with building Jira from source.

Steps

  1. Make any desired changes to JSP files in jira-components/jira-webapps/src/main/webapp.
  2. Build Jira from source by following the guide on Atlassian Developer.
  3. Copy the resulting .jsp and .class files from the compiled output into the Jira installation directory.
  4. Ensure the web.xml file has a <servlet-mapping> entry and a <servlet> entry for each modified file. For example:

    <servlet-mapping>
    	<servlet-name>jsp.secure.default_jsp</servlet-name>
        <url-pattern>/secure/default.jsp</url-pattern>
    </servlet-mapping>
    <servlet>
        <servlet-name>jsp.secure.default_jsp</servlet-name>
        <servlet-class>jsp.secure.default_jsp</servlet-class>
    </servlet>
  5. Restart Jira.


Last modified on Jun 25, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.