[EMAIL PROTECTED] wrote:
> 
> How do I include a file in a JSP-file? What tag do I use? I'm using
> Tomcat 3.1.

There's two ways:

<jsp:include page="{relativeURL}" flush="true"/>

or 

<%@ include file="{relativeURL}" %>

The first will include the output of the page you include, and the
second will include it and try to parsing it's JSP. (I usually use the
first one, but that's because I'm usually including dynamic stuff). 

Also take note that the flush="true" attribute is *required*. This is
changing in the 1.2 JSP spec, but until then, you'll need to include it,
or you'll get an error.

Brian
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to