What do different init parameters for the JSP engine mean?
  • keepgenerated:
  • Whether to keep the generated java file or no. Can take a value of true/false. If value is true then the generated files are kept else they are deleted.

  • * scratchdir:
  • The work dir which will be created for storing all the generated code. This can be set to any dir. That directory will be created under the docbase.

  • * largeFile:
  • Can take a value of true/false. If the file is really large then all the static html is stored is a separate data file if the value of this param is set to true.

  • * sendErrToClient:
  • Can take a value of true/false. If set to true then all the compilation/parsing errors will be sent as part of the response to the client.

  • * ieClassId:

    This is used with the plugin. This is a particular id that is set to activate the plugin. The default value for IE 4 and 5 are set as of now. This is for future use incase the classId for IE changes in the future.

To set any of these to a value other than the default you need to explicitely define the JSP engine servlet and a mapping for the .jps extension in WEBAPP/WEB-INF/web.xml, e.g.

<servlet>

<servlet-name>jsp</servlet-name>

<servlet-class> org.apache.jasper.runting.JSPServlet</servlet-class&gt;

<init-param>

<param-name>keepgenerated</param-name>

<param-value>true</param-value>

</init-param>

<init-param>

<param-name>sendErrToClient</param-name>

<param-value>true</param-value>

</init-param>

</servlet>

<servlet-mapping>

<servlet-name>jsp</servlet-name>

<url-pattern>*.jsp</url-pattern>

</servlet-mapping>