Hello!
On H, NOV 20, 2000 at 09:45:18 +0100, Kurt Bernhard Pruenner wrote:
> <!--#include virtual="/sswstyle/header.jsp" -->
If it's a jsp, then you should use <%@include file="..."%>, which works at
compile time. The <jsp:include page="..."> compiles the included page as a
separate file, thus can be changed after the compilation.
The include syntax you specified is just an optional thing. If the web server
support it, okay, but doesn't have to.
Anyway, I want to include output from a servlet. I have found a page for java
ssi at: http://www.areane.com/javahttp://www.areane.com/java
It's free, and it has an exec java method, like exec cgi! The only problem
that you must specify the class with the whole package like: java.io.whatever
Can I reach the servlets this way? I think no, as I didn't specified any
package xxx line in my code. :(
> to include a servlet that does provide the header for most pages... when we
> tried the same thing with some older Tomcat version (I don't know if it was
> 3.0 or 3.1), the above statement didn't do anything at all and was left in the
> page served by Apache.
Well, first I was a dumb, and included a <.servlet> tag in my html, without
jserv installed for apache. So that's why it was displayed without being
touched. And the jsp include was work like a forward and not an include (for
me at least).
Hope I gave you some points,
Laszlo