tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Cooper <mart...@apache.org>
Subject Re: c:import for dynamic content
Date Fri, 04 Nov 2005 05:08:32 GMT
On 11/3/05, Robert Butera <robert.butera@gmail.com> wrote:
>
> I am attempting to import a JSP file into a JSP using the <c:import> tag.
>
> The line looks something like this:
> ...
> <c:import url="file://c:/dira/dirb/imported-file.jsp"/>
> ..
>
> "imported-file.jsp" is being found ok, but it is not being processed as a
> JSP, it is appearing as static text.


That's because, since you are using a file URL, the request is not being
made via HTTP, and thus is not being processed by a container as a JSP page
request. You'll need to use an HTTP (or HTTPS) URL to get the file processed
as JSP.

--
Martin Cooper


I am using some struts tags in "
> imported-file.jsp" that are just getting sent to the browser. Is there
> something I'm doing wrong here? Is there something I need to place around
> the <c:import> to make the imported file get processed?
>
> I am running this on jboss 4.0.1 (tomcat 5.0) with JSTL 1.1.
>
> Any help would be greatly appreciated.
>
> Rob
>
>

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