title: Websphere 6.1 - Precompile jsp files
body: <p>What is the best way to precompile JSP files in Websphere (6.1)?</p>
  
  <p>I have looked at other questions related to JSP precompilations, but as each AppServer has specific settings, I would like to know specifically a solution for Websphere.</p>
  
  <p>I found some references in the net to edit the file ibm-web-ext.xmi:</p>
  
  <pre><code>Add the following line before the line
      ...
      &lt;/webappext:WebAppExtension&gt;:  
      &lt;jspAttributes
      xmi:id="JSPAttribute_2" name="disableJspRuntimeCompilation" value="true"/&gt;
  
      # Run the JSP batch compiler.
      WAS_installDir/bin/JspBatchCompiler -ear.path /mytmp/WC_jbweb1.expanded.ear -webmodule.name Stores.war -compileToWebInf true 
  </code></pre>
  
  <p>I am looking for some solution to precompile JSP's on deployment and not using the batch compiler.</p>
  
  <p>Thanks.</p>