You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Richard Bondi <rb...@ergito.com> on 2003/12/03 23:29:05 UTC
Tomcat 4.x non .jsp suffix for includes?
Dear All,
We want to use the suffix .jnc for our jsp include files. However, if we do
something like this:
<jsp:include page="productionHdr.jnc" flush="false">
<jsp:param name="ph.pageName" value="Scrub Reports"/>
</jsp:include>
The .jnc file is not compiled -- you can see all the jsp directives when
you view source in your browser. If you use .jsp, everything works fine.
Does anyone know how to configure tomcat to compile .jnc files in this
circumstance?
Is there a standard convention for naming jsp include files?
Thanks much,
r:b:
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat 4.x non .jsp suffix for includes?
Posted by Rodrigo Ruiz <rr...@gridsystems.com>.
In fact, I think you could reuse the default "jsp" servlet, and simply add
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.jnc</url-pattern>
</servlet-mapping>
to your webapp WEB-INF/web.xml, or $CATALINA_HOME/conf/web.xm, whichever
you preferl
What I am not sure about is whether the JSP servlet has its name fixed
in the JSP specification, or it is left to the container implementation.
Perhaps someone here can enlight this :-)
Cheers,
Rodrigo Ruiz
Richard Bondi wrote:
> Thanks to Chris and and Tim Funk for pointing me in the right
> direction. For the archives, I found that adding the following two
> lines to %catalina_home%/conf/web.xml did the trick:
>
> <servlet>
> <servlet-name>jnc</servlet-name>
>
> <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
> <init-param>
> <param-name>logVerbosityLevel</param-name>
> <param-value>WARNING</param-value>
> </init-param>
> <load-on-startup>3</load-on-startup>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>jnc</servlet-name>
> <url-pattern>*.jnc</url-pattern>
> </servlet-mapping>
>
> Best,
> Richard Bondi
>
> At 06:14 PM 12/3/2003 -0500, you wrote:
>
>> Richard,
>>
>>> Does anyone know how to configure tomcat to compile .jnc files in
>>> this circumstance?
>>> Is there a standard convention for naming jsp include files?
>>
>>
>> Yeah, .jsp :)
>>
>> Seriously, though. Check out CATALINA_HOME/conf/web.xml for how they
>> configure the .jsp file trnaslator/compiler. You could modify the
>> that web.xml file to include the same type of things for .jsp files,
>> or you could modify the deployment descriptor for your application.
>>
>> Unfortunately, modifying your deployment descriptor will make your
>> application non-portable. But, you are already making your .jsp files
>> called something else, anyway, so you'll have to do some sort of
>> re-configuration for every app server you indend to use.
>>
>> -chris
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat 4.x non .jsp suffix for includes?
Posted by Richard Bondi <rb...@ergito.com>.
Thanks to Chris and and Tim Funk for pointing me in the right direction.
For the archives, I found that adding the following two lines to
%catalina_home%/conf/web.xml did the trick:
<servlet>
<servlet-name>jnc</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
<param-name>logVerbosityLevel</param-name>
<param-value>WARNING</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>jnc</servlet-name>
<url-pattern>*.jnc</url-pattern>
</servlet-mapping>
Best,
Richard Bondi
At 06:14 PM 12/3/2003 -0500, you wrote:
>Richard,
>>Does anyone know how to configure tomcat to compile .jnc files in this
>>circumstance?
>>Is there a standard convention for naming jsp include files?
>
>Yeah, .jsp :)
>
>Seriously, though. Check out CATALINA_HOME/conf/web.xml for how they
>configure the .jsp file trnaslator/compiler. You could modify the that
>web.xml file to include the same type of things for .jsp files, or you
>could modify the deployment descriptor for your application.
>
>Unfortunately, modifying your deployment descriptor will make your
>application non-portable. But, you are already making your .jsp files
>called something else, anyway, so you'll have to do some sort of
>re-configuration for every app server you indend to use.
>
>-chris
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat 4.x non .jsp suffix for includes?
Posted by Tim Funk <fu...@joedog.org>.
Actually I think its much easier. In the local web.xml, I think you can add
the mapping for the other extension.
-Tim
Christopher Schultz wrote:
> Richard,
>
>> Does anyone know how to configure tomcat to compile .jnc files in this
>> circumstance?
>>
>> Is there a standard convention for naming jsp include files?
>
>
> Yeah, .jsp :)
>
> Seriously, though. Check out CATALINA_HOME/conf/web.xml for how they
> configure the .jsp file trnaslator/compiler. You could modify the that
> web.xml file to include the same type of things for .jsp files, or you
> could modify the deployment descriptor for your application.
>
> Unfortunately, modifying your deployment descriptor will make your
> application non-portable. But, you are already making your .jsp files
> called something else, anyway, so you'll have to do some sort of
> re-configuration for every app server you indend to use.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat 4.x non .jsp suffix for includes?
Posted by Christopher Schultz <ch...@comcast.net>.
Richard,
> Does anyone know how to configure tomcat to compile .jnc files in this
> circumstance?
>
> Is there a standard convention for naming jsp include files?
Yeah, .jsp :)
Seriously, though. Check out CATALINA_HOME/conf/web.xml for how they
configure the .jsp file trnaslator/compiler. You could modify the that
web.xml file to include the same type of things for .jsp files, or you
could modify the deployment descriptor for your application.
Unfortunately, modifying your deployment descriptor will make your
application non-portable. But, you are already making your .jsp files
called something else, anyway, so you'll have to do some sort of
re-configuration for every app server you indend to use.
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org