Hi,
I am using templates in struts, In my jsp page I used the below
statement.
......
<template:put name='title' content='<bean:message key="myclient.title" />'
direct='true'/>
......

the <bean:message key="myclient.title" /> statment prints MYPRINTPAGE .
but the output is not rendered in title location in runtime,
but it is printing "<bean:message key="printPage.title" />" message without
parsing the tag..

In short how can I use <bean:message ....> tag in templates.

Just  review the code to find out problem below.

in MyTemplate.jsp

<%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>
<%@ taglib uri='/WEB-INF/struts-html.tld' prefix='html' %>
<%@ taglib uri='/WEB-INF/struts-bean.tld' prefix='bean' %>
<html:html locale='true'>
<head>
<title>  <template:get name='title'/>  </title> //this is not parsed.

</head>
<body>
 <bean:message key="myclient.body.info" />   //This is parsed
</body>
</html:html>

in MyClient.jsp

<%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>
<%@ taglib uri='/WEB-INF/struts-bean.tld' prefix='bean' %>

<template:insert template='/HNCTemplate.jsp'>
  <template:put name='title' content='<bean:message key="myclient.title" />'
direct='true'/>
        //this bean tag is not parsed and not input the value to MyTemplate.jsp
</template:insert>


Many Thanx,
rayaku


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to