I tried
<%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>
<template:insert template='/xyy.jsp'>
<template:put name='menu' content='/menu.jsp'/>
</template:insert>
and it worked perfectly
Are you sure you closed the tag template:put ?
mikl
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 10:55 AM
To: [EMAIL PROTECTED]
Subject: template problem in WAS
I'm trying to use templates (not yet components, but soon) in WAS 3.5.3
I got a "uncaught" servlet exception (apparently on PageContext.include)
on a simple
example like :
<template:insert template="xyy.jsp">
<template :put name="menu" content="menu.jsp">
...
If I replace it by :
<template:insert template="xyy.jsp">
<template :put name="menu" direct="true"> <%@jsp:include file="menu.jsp"
%></template:put>
...
it works fine. But it sound like a bad workaround.
I've tried to use the attribute "flush" in the <template:get> but it is
no more supported
(not included in the dtd) in struts.
Any hint ?
Bernard.