I am trying to do something like this . I want a standard template and many
pages to be rendered by one Template insert by passing variable to the
content . Will is work . Is architecture proven to work in production
situations . I like the templates tags and would like to use them this way !

Your help will be appreciated 
Lakshmi

//--------------------------------------------------------------------------
----------------------------------
<%@ taglib uri='/WEB-INF/tlds/template.tld' prefix='template' %>
<%
        
        String body ="";
        String title ="";
        String navBarTitle="";
        String action = request.getParameter("action"); 
        if(action != null )
        {
                if(action.equals("addOrg"))
                {
                        body = "/addOrg.jsp";
                        title = "Add Organistation";
                        navBarTitle = "AddOrg";
                }
                else if(action.equals("viewOrg"))
                {
                        body = "viewOrg.jsp";
                        title = "View Organistations / Users / Groups";
                        navBarTitle = "View";
                
                }
        }
        else
        {
                
                body = "viewOrg.jsp";
                title = "Add Organistation";
                navBarTitle = "Add Org";
        }
        String navbar= "/staticNavBar.jsp?xx="+navBarTitle;     
                
%>

<template:insert template='/umsTemplate.jsp'>
        <template:put name='title' content='<%=title%>' direct='true'/>
        <template:put name='header' content='<%=navbar%>' />
        <template:put name='content' content='<%=body%>'/> 
        <template:put name='footer' content='/footer.html' />
</template:insert>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to