tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmk...@earthlink.net (David M. Karr)
Subject Re: How to "include" across contexts/webapps?
Date Sat, 05 Jan 2002 01:57:45 GMT
>>>>> "Daishi" == Daishi Harada <daishi@CS.Berkeley.EDU> writes:

    Daishi> Hi,

    Daishi> I have what seems like (and probably is) a very simple problem, but I
    Daishi> haven't been able to find a solution. Any help/hints would be
    Daishi> appreciated.

    Daishi> I'm trying to build a website in a typical sort of way, with headers
    Daishi> and footers isolated and "<%@include%>"'ed into the actual
    Daishi> pages. However, now I'd like to modularize somewhat and decompose
    Daishi> parts of the site into their own projects/contexts, while still having
    Daishi> each project share common headers and footers. Unfortunately,
    Daishi> "<%@include%>" is relative to the current context, so I haven't been
    Daishi> able to figure out a good way to share the header/footer information
    Daishi> across each of the contexts/apps. Is there a canonical way of doing
    Daishi> something like this?

You might take a look at the JSTL (JSP Standard Tag Library) at
<http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html>.  It includes
an "import" tag that specifies a URL, which can point anywhere, either relative
or absolute.  I have not used this.

-- 
===================================================================
David M. Karr          ; Best Consulting
dmkarr@earthlink.net   ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message