tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (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
<>.  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   ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message