[thelist] Re: thelist Digest, Vol 8, Issue 50

Diane Soini dianesoini at earthlink.net
Tue Oct 21 20:37:10 CDT 2003

There are two types of JSP includes: the include action and the include 

You are using the include action, but maybe you need to use the include 

They way I think of them is like this: For the <jsp:include action, it 
is only the output of it that is included at runtime.  It isn't going 
to read any variables set on the page that includes it. You have to 
pass variables in a <jsp:param> tag, or as a query string.

The other kind of include, <%@include file=""%> complies the content 
right into your page at compile time. This is what you are trying to do.

Both kinds have their advantages and disadvantages, and once you 
understand the differences, you will see why JSP is so good.


On Tuesday, October 21, 2003, at 05:06 PM, 
thelist-request at lists.evolt.org wrote:

> <% String orderInfo = "1"; %>
> // below is the page with the conditional DIV indside..
> <jsp:include page="includes/dashboards.jsp"/>
> inside the "dashboards.jsp" page I tried this:
> <% if(orderInfo.equals("1"))...show DIV %> (psuedo)
> Which does not work. Can anyone shed light on the correct way to
> handle this? I'm a bit of a JSP neo - I only know the basics.

More information about the thelist mailing list