You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Venkatraman, Shanthi" <Sh...@proactcorp.com> on 2001/09/07 17:13:38 UTC
problem using custom tags nested inside template tags
> I am encountering a problem in using template tag
>
> Here is the samle jsp
>
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
> <%@ taglib uri="/WEB-INF/tlds/shan-taglib.tld" prefix="shan" %>
> <%@ taglib uri="/WEB-INF/tlds/struts-template.tld" prefix="template" %>
>
>
> <jsp:useBean id="pageTemplate" scope="session"
> type="com.application.util.PageTemplate"/>
>
> <template:insert template='/xyz/template.jsp'>
> <template:put name='header' content='/xyz/header.jsp' />
> <template:put name='sidebar' content='/xyz/sidebar.jsp' />
> <template:put name='mainbody' content='<shan:page />' />
> <template:put name='footer' content='/xyz/footer.jsp' />
> </template:insert>
>
>
> For putting the mainbody's content, it works with a scriplet.
> But when I do the above (i.e. let the taglib decide the page name,
> Tag lib does get executed and does print out the correct name)
> however in the html generated, It skips the mainbody block.
>
> Can anyone help me out in this issue ?
>
> Thanks
> Shanthi