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
- Make any desired changes to JSP files in
jira-components/jira-webapps/src/main/webapp
. - Build Jira from source by following the guide on Atlassian Developer.
- Copy the resulting
.jsp
and.class
files from the compiled output into the Jira installation directory. 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>
- Restart Jira.
Last modified on Jun 25, 2024
Powered by Confluence and Scroll Viewport.