i'm surpised, i do the same thing in one of my JSP's (tomcat 3.2 on RH7.1 
linux) : 

i create a variable (incPage) in a preceeding <% %> block then issue 

<jsp:include page="<%= incPage %>" flush="true"/>

Which works fine - is the URL you generate correct?

On Thursday 21 Mar 2002 1:48 pm, you wrote:
> I apologize in advance for submitting an off topic request to the struts
> user community.  However, this group is quite knowledgeable and helpful and
> I could really use some assistance.
>
> Basically I want to have a dynamic include in a JSP.  Ideally I would like
> the following snipping to work.
>
> 1  <%
> 2      String product = request.getParameter("product");
> 3      if (product != null) {
> 4           product = product.replace(' ', '_');
> 5      } else {
> 6               product = "";
> 7      }
> 8      String includeFile = "static-html/opinion-request/" + product +
> 9                           "_process_overview.html";
> 10 %>
> 11 <jsp:include page=<%=includeFile%>/>
>
> Unfortunately, line 11 does not work as desired.  I have tried variations
> placing " around the <%= directive but that does not help.
>
> Any help is greatly appreciated.
>
> Tony

-- 
Martin Samm
[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to