struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Idusogie" <>
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 %>.


            	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"/>


Paul Idusogie


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message