Portlet Factory, Version 6.1.2
Precompiling JSPs in a WAR file
You can precompile JSPs associated with a WAR file just as you can other JSPs. Precompiling allows you to improve performance by creating all the JSPs associated with a model in one operation. The process is similar to precompiling from the command line. However, there are differences related to the URL used and other parameters.
- Deploy the WAR file that contains the JSPs to precompile.
- In the directory where the WAR file was deployed, locate the WEB-INF\bin directory.
- Generate a list of model files for which you want JSPs precompiled.
This list serves as an argument to the precompile command and must be in the proper format.
- Enter the command to initiate compilation.
- For a portlet
compileJSP -modellist c:/model.txt -url http://your.machine.name/portal-server-specific path/portlet adapter WAR filenameNote: The URL used as an argument to the precompile command must include the name of the portlet adapter WAR file.
- For a standalone application or widget
compileJSP -modellist c:/model.txt -url http://your.machine.name/web-server-specific path/widget adapter WAR filenameNote: For a widget, the URL used as an argument to the precompile command must include the name of the widget adapter WAR file.
- Click Enter to initiate operations.
- Examine the .../genjsp directory to view the generated JSPs.
Parent topic: Pre-compiling model JSPs
Library | Support |