You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Paul Idusogie <po...@att.net> on 2002/06/03 23:30:57 UTC

Need Advice on dynamic variable substitution

I have the following within a jsp page that uses a template.
In this page I assign values to variables that are used within the template
clause <template: ..> </template:...> but it does not work
For example the title page (title.jsp) does not set the window title with
the value stored in <%= windowTitle %>.

Help:?


            <%
            	String windowType = "Jobs";
            	String windowTitle = "application.title";
            	String windowSubTitle = "application.subtitle";
            %>

<template:insert template="/template.jsp" >
	<template:put name="title" content="title.jsp?Type=<%= windowTitle %>"/>
	<template:put name="header" content="header.jsp?Type=<%= windowType %>"/>
	<template:put name="menu" content="menu.jsp?Type=<%= windowType %>"/>
	<template:put name="sidebar" content="application_sidebar.jsp?Type=<%=
windowType %>&SubTitle=<%= windowSubTitle %>"/>
    	<template:put name="content" content="application_content.jsp"/>
	<template:put name="footer" content="footer.html"/>
</template:insert>

Sincerely,


Paul Idusogie

Email: poidusogie@att.net


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>