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.

  1. Deploy the WAR file that contains the JSPs to precompile.

  2. In the directory where the WAR file was deployed, locate the WEB-INF\bin directory.

  3. 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.

  4. 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 filename

      Note: 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 filename

    Note: For a widget, the URL used as an argument to the precompile command must include the name of the widget adapter WAR file.

  5. Click Enter to initiate operations.

  6. Examine the .../genjsp directory to view the generated JSPs.

Parent topic: Pre-compiling model JSPs


Library | Support |