struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hair, Jeffrey" <JH...@fcg.com>
Subject title in JSP template
Date Wed, 24 Apr 2002 17:16:32 GMT
I'm using a JSP template that contains several fields - one being the title
to be used in the html. The problem is that the title is 'hardcoded' within
index.jsp. I want to be able to pull this info from my ApplicationResources
file using <bean:message key="home.title"> tag in order to support
internalization.

Is there a way to 'nest' tag calls?

Thanx,
jsh


template.jsp
...
<head>
<title><template:get name='title'/></title>
...

index.jsp
<%@ taglib uri="/WEB-INF/tlds/struts-template.tld" prefix="template" %>

<template:insert template="/inc/jsp/template1.jsp">
   <template:put name="title" content="Home" direct="true"/>
   <template:put name="header" content="/inc/jsp/Header.jsp"/>
   <template:put name="sideBar" content="/inc/jsp/SideBarMenu.jsp"/>
   <template:put name="content1" content="/indexContent.jsp"/>
</template:insert>

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