The only way I can think is to do it with a scriptlet:
<%
String url = "foo?bar=" + whatMakesItDifferent;
getServletContext().getRequestDispatcher(url).include(request,
response)
%>
This is of course totally untested.
�lafur Gauti Gu�mundsson wrote:
> I have a problem...How can I include files dynamically? That is, how
> can I make <%@ include=URL%> work, where URL is a variable?( I am
> including files in a while-loop and the URL changes in every loop
> according to new material from a database.) I am using JRun.I have
> also tried<jsp:include file=URL />but it does not work either.I want
> the include to be dynamic (load the included page before it is
> included). Thanks. �lafur Gauti Gu�mundsson
> �Degree Technologies Reykjav�k
> [EMAIL PROTECTED]
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".