I think <template:put> tag puts the contents (="/media/h_modify.gif)in some
hashtable on the stack . and <template:get> tag retrieves that content from
hashtable and includes in the pageContext which displays it . so I think u
can put anything in the header.jsp

Suhas
----- Original Message -----
From: Jim Richards <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 10, 2001 6:16 AM
Subject: template:put and get


>
> I've got a situation where I want to include a header file with
>
> <template:insert template="/share/inc_header.jsp">
>     <template:put name="header_image" content="/media/h_modify.gif"
direct="true"/>
> </template:insert>
>
> and then in the header file have
>
> <html:img page="/media/h_modify.gif" width="315" height="23" border="0"/>
>
> but replace the page="" with the <template:get/>. Trouble is you can't
nest
> tags. One options is to do the html without the jsp, and have
>
> <img src="<%= request.getContextPath() %>/media/h_modify.gif" width="315"
height="23" border="0"/>
>
> but that doesn't look great, but I can't think of anything else. The
<template:put/>
> seems to hide the content away somewhere away in the request, and I don't
want to
> create 20 little html/jsp pages for the different headers that I have.
>
> Any ideas?
>
>
>
> --
> Kumera - a new Open Source Content Management System
> for small to medium web sites written in Perl and using XML
> http://www.cyber4.org/kumera/index.html

Reply via email to