struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Idusogie" <poiduso...@att.net>
Subject Using variables in template assignments Help?
Date Sun, 02 Jun 2002 03:28:13 GMT
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:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message