R
ralf eichinger
I try to do this:
- login.jsp:
....
<tiles:insert page="/WEB-INF/layouts/default.jsp" flush="true">
<tilesut name="title" type="string" value="login.title" />
...
</tiles:insert>
....
- default.jsp
want to use value of "title" (which is "login.title") as key for
bean:message:
....
<title><bean:message key="<tiles:getAsString name='title' />"
/></title>
....
it doesn't work this way.
this doesn't work too:
<tiles:importAttribute name="title" scope="page" />
....
<title><bean:message name="title" /></title>
....
error:
[ServletException in:/WEB-INF/layouts/default.jsp] Property for
message key must be a String'
is there a best practice?
please help...
- login.jsp:
....
<tiles:insert page="/WEB-INF/layouts/default.jsp" flush="true">
<tilesut name="title" type="string" value="login.title" />
...
</tiles:insert>
....
- default.jsp
want to use value of "title" (which is "login.title") as key for
bean:message:
....
<title><bean:message key="<tiles:getAsString name='title' />"
/></title>
....
it doesn't work this way.
this doesn't work too:
<tiles:importAttribute name="title" scope="page" />
....
<title><bean:message name="title" /></title>
....
error:
[ServletException in:/WEB-INF/layouts/default.jsp] Property for
message key must be a String'
is there a best practice?
please help...