您的位置:寻梦网首页编程乐园Java天地JSP 专辑JSP001 HTML 离线版
Java 天地
JSP001 HTML 离线版
FAQ汇萃 >> Tomcat >> How do I configure Tomcat to use JSSI for .jhtm/.jhtml pages?

由 webmaster 发布于: 2001-01-30 10:44

Arrow

http://java.apache.org/jservssi/ - the JServ JSSI servlet should do the trick.

From: "Craig R. McClanahan" <Craig.McClanahan@eng.sun.com>
To: tomcat-user@jakarta.apache.org
Subject: Re: how to use jssi with tomcat

Shilpa Kulkarni wrote:

> hello all,
>
> i want to use <servlet> tag to include the contents of the servlet in my
> page.
> with apache server, u can use Apache JSSI to do this along with Apache
> Jserv.
>
> with tomcat, how do i use JSSI to include <servlet> tags in my jsp.
>

It would be technically feasible for a servlet or RequestInterceptor that
does this to be created -- or perhaps JSSI could be adapted to work under
Tomcat. Any such contributions would be gratefully accepted.


From: "Mike Bremford" <mikeb@paperx.com>
To: <tomcat-user@jakarta.apache.org>
Subject: RE: how to use jssi with tomcat
Date: Fri, 15 Sep 2000 16:50:47 +0100

If there is a RequestInterceptor for this, I would love to hear of it too!

In the meantime, you can always convert them to JSP's: Just change the lines

<servlet name=myServlet>
<param name=aParam value=aValue>
</servlet>

into

<jsp:include page="/servlet/myServlet" flush="true" >
<jsp:param name="aParam" value="aValue" />
</jsp:include>

(examples shamelessly stolen from an earlier discussion - see
http://www.metronet.com/~wjm/tomcat/FromFeb11/msg00018.html )



资料来源: JSP001.com