You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ken Riley <kr...@allconnect.com> on 2002/10/16 23:51:31 UTC
Problem with templates & WL6.1SP3
Hello all,
I am having an issue with v1.0.2 templates and Weblogic 6.1 SP3. The specific problem is
that the web container does not output any more information after processing the first
template:get to a struts action. This worked well before we 'upgraded' to SP3.
The following code (under sp3) will output everything up to the end of the output of
/showHeader.do. If I change the template:get's around so that any of the other struts
actions are executed first, I still get the same behavior.
I've searched BEA's notes for sp3 and come across the following which might explain the behavior:
Chng RQ Description
------- -----------
066500 Forwared JSP pages will now terminate the execution of the current page.
Since I'm surely not the only person to be using templates with WL6.1sp3 I was hoping that
someone else has encountered and resolved the problem. I am also talking with BEA but
don't expect any quick solutions on that end. Thanks in advance for any insight or assistance.
Jsp1=============================================================,
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<template:insert template="/jsp/template/template_service_center.jsp">
<template:put name="title" content="A Somewhat Interesting Page Title" direct="true"/>
<template:put name="header" content="/showHeader.do"/>
<template:put name="ad" content="/showAd.do"/>
<template:put name="serviceTypeList" content="/showServiceTypeList.do"/>
<template:put name="content" content="/showOrderStatus.do"/>
</template:insert>
end jsp1=============================================================
template_service_center.jsp==========================================,
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<html:html>
<head><title><template:get name="title"/></title>
</head>
<body>
<table align="left" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td>Header<template:get name="header"/>/Header</td></tr>
<tr><td>Ad<template:get name="ad"/>/Ad</td></tr>
<tr><td>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td>ServiceTypeList<template:get name="serviceTypeList"/>/serviceTypeList</td>
<td>Content<template:get name="content"/>/Content</td>
</tr></table></td>
</tr>
<tr><td><jsp:include page="../common/footer.jsp"/></td></tr>
</table>
</body>
</html:html>
end template_service_center.jsp===========================================
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Problem with templates & WL6.1SP3
Posted by Cedric Dumoulin <ce...@apache.org>.
Sometime using the Tiles library instead of templates solve this kind
of problems. In your case, you need to use TilesForStruts1.1.jar,
available in Tiles bin distribution from my site
(http://www.lifl.fr/~dumoulin/tiles/).
Cedric
Ken Riley wrote:
>Hello all,
>
>I am having an issue with v1.0.2 templates and Weblogic 6.1 SP3. The specific problem is
>that the web container does not output any more information after processing the first
>template:get to a struts action. This worked well before we 'upgraded' to SP3.
>
>The following code (under sp3) will output everything up to the end of the output of
>/showHeader.do. If I change the template:get's around so that any of the other struts
>actions are executed first, I still get the same behavior.
>
>I've searched BEA's notes for sp3 and come across the following which might explain the behavior:
>
>Chng RQ Description
>------- -----------
>066500 Forwared JSP pages will now terminate the execution of the current page.
>
>Since I'm surely not the only person to be using templates with WL6.1sp3 I was hoping that
>someone else has encountered and resolved the problem. I am also talking with BEA but
>don't expect any quick solutions on that end. Thanks in advance for any insight or assistance.
>
>
>Jsp1=============================================================,
><%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
>
><template:insert template="/jsp/template/template_service_center.jsp">
>
> <template:put name="title" content="A Somewhat Interesting Page Title" direct="true"/>
> <template:put name="header" content="/showHeader.do"/>
> <template:put name="ad" content="/showAd.do"/>
> <template:put name="serviceTypeList" content="/showServiceTypeList.do"/>
> <template:put name="content" content="/showOrderStatus.do"/>
>
></template:insert>
>end jsp1=============================================================
>
>template_service_center.jsp==========================================,
><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
><%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
>
><html:html>
>
><head><title><template:get name="title"/></title>
></head>
><body>
><table align="left" width="100%" border="0" cellspacing="0" cellpadding="0">
><tr><td>Header<template:get name="header"/>/Header</td></tr>
><tr><td>Ad<template:get name="ad"/>/Ad</td></tr>
><tr><td>
> <table border="0" cellspacing="0" cellpadding="0" width="100%">
> <tr>
> <td>ServiceTypeList<template:get name="serviceTypeList"/>/serviceTypeList</td>
> <td>Content<template:get name="content"/>/Content</td>
> </tr></table></td>
></tr>
><tr><td><jsp:include page="../common/footer.jsp"/></td></tr>
></table>
></body>
></html:html>
>end template_service_center.jsp===========================================
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>