This directory will contain your JSPs, HTMLs, images, and all the
web application related files inside the docroot
subdirectory. Here are some of the most common activities you will be
performing from this directory:
Run ant deploy to deploy changes in the directory
The script will copy everything from
/ext/ext-web/docroot
over to
/ext/ext-web/tmp
and then copy everything from
/ext/ext-web/tmp
to the deployment directory of
your specified application server. Do not manipulate the contents of
/ext/ext-web/tmp
manually. This provides an
easy way to extend the portal without changing the source and makes
upgrading very easy.
Note that if you have modified the files inside docroot/WEB-INF it is required to run ant build-website before ant deploy.
Run ant fast-deploy to deploy only changed JSPs.
Use this version for quick deployment in the process of developing a JSP or set of JSPs
To add entries to the web application configuration file edit
/ext/ext-web/docroot/WEB-INF/web.xml
. Be aware
that this file will be merged with
/ext/ext-web/tmp/WEB-INF/web.xml
. The files
web-ejb-ref.xml
and
web-ejb-local-ref.xml
are also merged in. They
will only be used if you use Liferay Service Builder to create your
portlets.
To add a portlet, edit
/ext/ext-web/docroot/WEB-INF/portlet-ext.xml
,
/ext/ext-web/docroot/WEB-INF/liferay-portlet-ext.xml
,
/ext/ext-web/docroot/WEB-INF/liferay-display.xml
and
/ext/ext-impl/classes/content/Language-ext.properties
.
These *-ext.xml
files are read after their
parent files are read and override their parent values.
See the portlet examples for information on general portlet design.
If you are using StrutsPortlet to develop your portlets the following files will also be of interest to you:
/ext/ext-web/docroot/WEB-INF/struts-config.xml
:
add your custom mappings to it. Be aware that when deployed its
name changes to
struts-config-ext.xml
.
/ext/ext-web/docroot/WEB-INF/tiles-defs.xml
:
add your custom tiles definitions to it. Be aware that when
deployed its name changes to
tiles-defs-ext.xml
.
Note | |
---|---|
It is strongly suggested that you place all you JSPs and
accompanying files inside the subdirectory
|
Tip | |
---|---|
It is possible to override the JSPs that ship with Liferay
Portal by placing them in
|