I had the same need and was thinking about doing this:
<template:insert template='<%=session.userTemplate%>'>
the sesion var will be set upon successful login.
Might work.

Thinh

-----Original Message-----
From: Minh Tran [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 12:46 PM
To: '[EMAIL PROTECTED]'
Subject: Dynamically changing template and template source on a Master
JSP page


Has anyone ever tried to do this?

I would like to have a master JSP page this looks something like this:

<%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>
<template:insert template='/SiteTemplate.jsp'>
        <template:put name='title' content='SCMTest' direct='true' />
        <template:put name='header' content='/Header.html' />
        <template:put name='sidebar' content='/SideBar.jsp' />
        <template:put name='content' content='/Content.jsp' />
        <template:put name='footer' content='/Footer.html' />
</template:insert>


but be able to dynamically change the template and or the template:put
content source to something else...

I thought about using scriptlets to insert the dynamic source.. but that
doesn't work..

Please let me know if you've have any ideas.. 

Thanks,
Minh

Reply via email to