Hi John,
what you do is to include dynamic files (I think). That was my first
thought too, but....
The resulting code on the browser side exactly writes the code <jsp:
include page="true.jsp" flush="true" />
in the source code the user can see. Seems, that the dynamic include
doesn't work at all with JRun on IIS.
Generally, all the jsp: ... stuff seems not to work with our
environment.
> -----Original Message-----
> From: John Keyes [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, November 29, 1999 6:55 PM
> To: Carsten Heiermann
> Subject: Re: include questions
>
> Hi Carsten,
>
> The include you use below is a static include ie. the data referred to
> in the
> included file is inserted as is. This means the JSP engine does not
> get to
> process it. To achieve what you desire you have to do the following:
>
> <if condition="bTest">
> <jsp: include page="true.jsp" flush="true" />
> <else>
> <jsp: include page="false.jsp" flush="true" />
> </if>
>
> Hope this helps,
> -John K
>
> Carsten Heiermann wrote:
> >
> > Hi all,
> >
> > I try to include different files in if/else statements like this:
> >
> > <% boolean bTest = false;
> > if (anything) {
> > bTest = true;
> > }
> > %>
> >
> > <if condition="bTest">
> > <%@ include="true.jsp" %>
> > <else>
> > <%@ include="false.jsp" %>
> > </if>
> >
> > The two "result-dependent-jsp" do different things and contain
> Servlets
> > and Java.
> >
> > Two questions:
> >
> > a) The Sun Syntax Document tells a different syntax for the include
> Tag:
> > <%@ include file="true.jsp" %>. Typo? Different Implementation with
> > JRun?
> >
> > b) "My" syntax includes the files, but the taglets are written in
> the
> > Browser source, let's say, not interpreted. Is this meant with
> static?
> > Is it possible to combine jsp's in my way?
> >
> > As you can imagine, it is possible and works to copy/paste the code
> of
> > the true/false.jsp's in the containing document. Works fine, but as
> I
> > often call these docs, what amount of absolut identical code! What
> long
> > source files.
> >
> > Can someone help?
> >
> >
> ======================================================================
> =====
> > 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
===========================================================================
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