Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVioleta Georgieva2012-11-29 15:49:08 -0500
committerVioleta Georgieva2012-11-29 15:49:08 -0500
commitb65e67ee7f38419498dac89e3887a575910915c5 (patch)
tree51fadeedf423601e49502e877e2229f6c7f0f0b5
parentf0de3e8b55e8df413aa0a6164ee84d09e84dd83f (diff)
downloadorg.eclipse.gemini.web.gemini-web-container-b65e67ee7f38419498dac89e3887a575910915c5.tar.gz
org.eclipse.gemini.web.gemini-web-container-b65e67ee7f38419498dac89e3887a575910915c5.tar.xz
org.eclipse.gemini.web.gemini-web-container-b65e67ee7f38419498dac89e3887a575910915c5.zip
bug 395405: Add to User Guide section for JSP Compilation configuration
-rwxr-xr-xorg.eclipse.gemini.web.documentation/user-guide/src/configuring.xml38
-rwxr-xr-xorg.eclipse.gemini.web.documentation/user-guide/src/gemini-web-user-guide.xml2
2 files changed, 39 insertions, 1 deletions
diff --git a/org.eclipse.gemini.web.documentation/user-guide/src/configuring.xml b/org.eclipse.gemini.web.documentation/user-guide/src/configuring.xml
index 2f48429..73d831f 100755
--- a/org.eclipse.gemini.web.documentation/user-guide/src/configuring.xml
+++ b/org.eclipse.gemini.web.documentation/user-guide/src/configuring.xml
@@ -318,6 +318,44 @@
</itemizedlist>
</para>
</section>
+ <section id="configuring-jsp-compilation">
+ <title>JSP Compilation</title>
+ <para>
+ By default Apache Tomcat compiles JSP files in web applications agains Java 1.6.
+ In order to enable JSP compilation against Java 1.7 for your web application,
+ additional init parameters (<literal>compilerSourceVM</literal> and <literal>compilerTargetVM</literal>) should be added for the <literal>org.apache.jasper.servlet.JspServlet</literal> configuration.
+ For details about <literal>org.apache.jasper.servlet.JspServlet</literal> configuration, see the <ulink url="http://tomcat.apache.org/tomcat-7.0-doc/jasper-howto.html">Apache Tomcat Jasper 2 JSP Engine</ulink>.
+ <literal>org.apache.jasper.servlet.JspServlet</literal> configuration can be provided with the web application's web.xml.
+ </para>
+ <programlisting language="xml"><![CDATA[<?xml version="1.0" encoding="ISO-8859-1"?>
+<servlet>
+ <servlet-name>jsp</servlet-name>
+ <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
+ <init-param>
+ <param-name>compilerSourceVM</param-name>
+ <param-value>1.7</param-value>
+ </init-param>
+ <init-param>
+ <param-name>compilerTargetVM</param-name>
+ <param-value>1.7</param-value>
+ </init-param>
+ <init-param>
+ <param-name>fork</param-name>
+ <param-value>false</param-value>
+ </init-param>
+ <init-param>
+ <param-name>xpoweredBy</param-name>
+ <param-value>false</param-value>
+ </init-param>
+ <load-on-startup>3</load-on-startup>
+</servlet>
+<servlet-mapping>
+ <servlet-name>jsp</servlet-name>
+ <url-pattern>*.jsp</url-pattern>
+ <url-pattern>*.jspx</url-pattern>
+</servlet-mapping>
+]]></programlisting>
+ </section>
</section>
<section id="configuring-osgi-framework">
<title>Configuring the OSGi Framework</title>
diff --git a/org.eclipse.gemini.web.documentation/user-guide/src/gemini-web-user-guide.xml b/org.eclipse.gemini.web.documentation/user-guide/src/gemini-web-user-guide.xml
index a23725d..275871d 100755
--- a/org.eclipse.gemini.web.documentation/user-guide/src/gemini-web-user-guide.xml
+++ b/org.eclipse.gemini.web.documentation/user-guide/src/gemini-web-user-guide.xml
@@ -20,7 +20,7 @@
</listitem>
<listitem>
<para>
- Violeta Georgieva, SAP AG - Apache Tomcat context configuration
+ Violeta Georgieva, SAP AG
</para>
</listitem>
</itemizedlist>

Back to the top