I am trying to use the localization feature and cannot seem to get it to
work, I might just be missing some simple step.
Web.xml
<servlet>
<servlet-name>org.dbforms.ConfigServlet</servlet-name>
<servlet-class>org.dbforms.ConfigServlet</servlet-class>
<init-param>
<param-name>resourceBundle</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
index.jsp
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/dbforms.tld" prefix="db" %>
<html xmlns:db="http://www.wap-force.com/dbforms">
<head>
<title>Test One</title>
</head>
<body class="clsPageBody">
HELLO
<db:message key="msg.one"/>
<db:message key="msg.two"/>
</body>
</html>
I have 2 files,
ApplicationResources.properties and ApplicationResources_th.properties.
I have tried putting them in the base directory, ./WEB-INF, and ./WEB-INF/lib
I am using tomcat, and dbforms1.1.3. on windows xp
All I ever see is 'msg.one' 'msg.two', not the messages in
ApplicationResources.properties
Thanks in advance
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
DbForms Mailing List
http://www.wap-force.net/dbforms