[ http://mc4j.org/jira/browse/STS-338?page=comments#action_10665 ] Akbar Ibrahim commented on STS-338: -----------------------------------
It is very straightforward to localize the page title. Consider the layout definition... <%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%> <stripes:layout-definition> <html> <head> <title>${pageTitle}</title> </head> <body> ..... </body> </html> </stripes:layout-definition> A localized title can be passed to the layout in the following manner... <%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <fmt:setBundle basename="StripesResources" /> <fmt:message var="pageTitle" key="page.title.key.from.message.bundle"/> <stripes:layout-render name="/path/to/layout.jsp" pageTitle="${pageTitle}" > ... </stripes:layout> > Page title not localizeable when using stripes:layout-render > ------------------------------------------------------------ > > Key: STS-338 > URL: http://mc4j.org/jira/browse/STS-338 > Project: Stripes > Issue Type: Improvement > Components: Tag Library > Affects Versions: Release 1.4.2 > Environment: Tomcat 5.5 with JSPs > Reporter: Werner Kolov > Assigned To: Tim Fennell > Priority: Blocker > > I have not found any possibility to localize the page title with > stripes:layout-render. The usual workaround with <fmt:message key="..."/> > does not work here. In the bugzooky application you simply wrote titles as > plain text directly into the JSP. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://mc4j.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Stripes-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-development
