Arun Thomas wrote:
>
> <jsp:include> is a run time include. The contents of the file you are
> including, therefore,
> should be static (contain no JSP) as, at run time, you are past the jsp
> interpretation and compilation.
>
> The primary purpose of this tag is to allow you to dynamically change the
> contents of the page displayed
> based on some logic. The actual content object itself must not require
> further dynamic expansion.
This is not really accurate. Yes, it's a run-time include, but it's also the
result of processing the JSP page (or servlet) that is included, not the
source. So it's perfectly okay for the included page to be a regular JSP
page with beans, tags, scriptlets and all that good stuff.
It's hard to say what the original poster's problem is since no sample
code and/pr error messages was included...
> The <%@ include ...> tag is a compile time inline include. This is
> interpreted at compile time, and
> essentially replaces itself with the contents of the include file. After
> all these replacements are made,
> the file is compiled to provide a servlet class file. The included files,
> therefore, can have jsp code.
>
> -AMT
>
> > -----Original Message-----
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Srinivas Kalluri
> > Sent: Tuesday, January 04, 2000 2:17 PM
> > To: [EMAIL PROTECTED]
> > Subject: how to use jsp include tag
> >
> >
> > Hi,
> >
> > I am getting a compile time error when i am trying to include a jsp in
> > another jsp (Using jsp:include tag). The first one is dynamic in content
> > generation. early reply will help me a lot...
> >
> > Thanx
> >
> > kalluri Srinivas
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html