tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Mast" <jhmast.develo...@gmail.com>
Subject Re: how do I dynamically include files
Date Thu, 01 May 2008 20:10:04 GMT
Thanks Yuval, but the jsp file that fileName is pointing to is not being
evaluated. And there aren't any errors printing out to the page.  How do I
"look" into what is happening here?


On Thu, May 1, 2008 at 6:47 PM, Yuval Perlov <yuval@r-u-on.com> wrote:

> <%
> getServletContext().getRequestDispatcher(fileName).include(req,resp);
> %>
>
> On May 1, 2008, at 10:35 PM, Jonathan Mast wrote:
>
> I know this not exactly a Tomcat issue, but thought someone could help.
>
> Here is what I'm trying to do:
> Dynamically include a file where the file name is dynamic.  Neither of the
> following lines of code work:
>
>   <jsp:include page="directory/<%=fileName%>" flush="true"/>
>   <%@ include file="directory/<%=fileName%>" %>
>
> The <%=fileName%> is not getting evaluated like one would think it should,
> it is just being rendered as a literal.
>
> Any way around this?
>
> Thanks
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message