Compiling JSP Pages in APPS

on Wednesday, February 18, 2009

Step 1 - Copy the jsp file to $COMMON_TOP/webapps/oacore/html
(this location translates to $OA_HTML).

Placing the file under $OA_HTML enables end users to access the file
using the url
http://hostname.domain:port/OA_HTML/[jspfile.jsp]
Step 2 - export PATH=$PATH:$FND_TOP/patch/115/bin
Step 3 - ojspCompile.pl -compile -s ‘[jspfile.jsp]‘

There is no need to bounce apache server after compiling the file to access the new content.

Below is the command line help for ojspCompile.pl command
ojspCompile.jsp command help
syntax: ./ojspCompile.pl COMMAND {ARGS}COMMAND
– compile update dependency, compile delta
– create rebuild entire dependency file
– delta.out update dependency, list delta to file
– dep.out update dependency, output heirarchy to file

ARGS -s matching condition for JSPs filenames
– p number of parallel compilations- log to override logfile from ojspCompile.conf
It is recommended to set the log file location outside of any network file system shared (NFS) area/drive.
– conf to override ojspCompile.conf– retry retry previously failed compilation attempts
– flush forces recompilation of all parent JSPs
– quiet do not provide an actively running progress meter
– fast instantly fail jsps that are *possibly* invalid
example1 : ojspCompile.pl –compile -s ‘jtf%’ -p 20 –retry
example2 : ojspCompile.pl –compile -s ‘jtflogin.jsp,jtfavald.jsp’ –flush
example3 : ojspCompile.pl –compile –fast –quiet