how to pre-compile JSF pages?

Hi,I am new to JSF and would appriciate if any one can help me find out how to pre-compile JSF pages?Thanks in advancesatsdn
[152 byte] By [NewJSFpala] at [2007-10-2 9:29:04]
# 1

The same way you pre-compile JSP pages: Set it up in your faces-config.xml file.

Here's how I do it:

<servlet>

<servlet-name>AcctID</servlet-name>

<display-name>AcctID</display-name>

<jsp-file>/AcctID.jsp</jsp-file>

<load-on-startup>-1</load-on-startup>

</servlet>

Put one of these tags for each JSP you want to pre-compile. The -1 load-on-startup value is important.

CowKing

IamCowKinga at 2007-7-16 23:35:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
By the way .. what means to pre-compile JSP ?
amitteva at 2007-7-16 23:35:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Pre-compile forces the container to compile the JSPs when deploying the application and not when the first request for the JSP happens. You may have noticed that the first time you request a JSP after server startup takes longer than any subsequent requests.Greetings, jimbo
jimbo_ja at 2007-7-16 23:35:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Thank you! :)
amitteva at 2007-7-16 23:35:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Buahah! I just realize I incorrectly told you to put that snippet in the faces-config.xml file. THAT IS WRONG! Do not put the above posted tag into your faces-config. Rather, put the tags into the web.xml.My apologies for that oversight.CowKing
IamCowKinga at 2007-7-16 23:35:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
Thank you so much.
NewJSFpala at 2007-7-16 23:35:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...