I have some code that runs something like this:
<c:set value="${pageContext.request.queryString}" var="section"/>
<c:if test="${empty section}">
<c:set value="home" var="section"/>
</c:if>
<c:set value="/scripts/headlines.jsp?section=${section}" var="headlines"/>
<jsp:include page="${headlines}" flush="true"/>
I am passing the value "fodder" through the querystring. So, the full value
of "headlines" is "/scripts/headlines.jsp?section=fodder". When I print
this with c:out, it prints out correctly to the screen, so I know the value
is being passed correctly. The problem I have is that it's not including
the file with the document in the jsp:include tag.
I have also tried inputting "/scripts/headlines.jsp?section=${section}" into
the page attribute, but I just get an error because it's apparently trying
to read ${section} as the querystring value. In addition, I've placed the
variable into the page attribute using the scripting tags: <%= headlines %>,
but I get a variable undefined error for "headlines."
The only thing that works perfectly is placing the text into the attribute
statically: "/scripts/headlines.jsp?section=fodder", but this is not what I
prefer to do.
Am I doing something wrong?
Thanks.
Ben Ramsey
Technical Director
EUREKA! Interactive, Inc.
770-642-0390
www.eureka-interactive.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>