You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Vic Cekvenich <vi...@baseBeans.com> on 2003/06/07 18:52:47 UTC
Bellow syntax does not localize, and there are questions in archives...
but no working solutions.
Is there a solution sample that someone has localization working?
.V
<%@ taglib uri="jstl/x" prefix="x" %>
<%@ taglib uri="jstl/c" prefix="c" %>
<%@ taglib uri="jstl/fmt" prefix="fmt" %>
<%@ taglib uri="struts/html" prefix="html" %>
<p>
<a href ='?lang=hr'>Hrvatski</a><br>
<a href ='?lang=en'>English</a><br>
<p>
<fmt:setBundle basename='properties.messages'/>
<c:if test="${param.lang == 'hr'}">
<fmt:setLocale value = 'hr' />
</c:if >
<c:if test="${param.lang == 'en'}">
<fmt:setLocale value = 'en-US' />
</c:if>
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org