You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by El...@bull.net on 2006/05/22 08:33:10 UTC
Internationalization
Hi,
I'm making the internationalization for the formularies with velocity. I
use the Java class (java.util) RescourceBundle and I save it into a
PortleSession that after I get into the layout .jsp.
My problem is that I don't know how I have to get this attribute since the
.vm for doing the internationalization for the formularies.
The code into archive .jsp is:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
<%@ page import="javax.portlet.*"%>
<%@ page import="java.util.*"%>
<portlet:defineObjects/>
<% ResourceBundle
res=(ResourceBundle)renderRequest.getPortletSession().getAttribute(
"resourceBundle"); %>
<table border style=
"margin-left:auto;margin-right:auto;width:800px;background-color:blue;text-align:left"
>
<font color="red" size="1"><%=res.getString(
"portletAPA.ecrans.champsObligatoires")%></font><br>
</table>
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org