Now I am migrating from struts1 to struts2 web application.
I find that in struts2, how to implement multiple resources file based on locale and different module. e.g. in previous struts1 version, I have below in struts-config.xml
Moreover, how in implement in controller code in struts2 ?? Please help!!!
based on different module:
<message-resources key="cardResources" parameter="com.aeon.onlineapplications.struts.CardApplicationResources" />
<message-resources key="creditResources" parameter="com.aeon.onlineapplications.struts.CreditApplicationResources" />
And
for each com.aeon.onlineapplications.struts.CardApplicationResources , I have
based on different language:
CardApplicationResources_fr.properties
CardApplicationResources_de.properties
CardApplicationResources_zh.properties
CardApplicationResources.properties
And in struts1
jsp file as below in my case. Does I need to change also for struts2 framework??
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<BODY TOPMARGIN="0" LEFTMARGIN="0" ONCONTEXTMENU="return false;" onload="ga_send('public', 'CardApp2');">
<CENTER>
<TABLE CELLPADDING="0" CELLSPACING="0">
<TR><TD ALIGN="CENTER"><IMG SRC="<bean:message bundle="cardResources" key="image.card.header" />"></TD></TR>
<TR><TD ALIGN="CENTER"><BR>
<IMG SRC="<bean:message bundle="cardResources" key="image.card.finish" />" USEMAP="#EMAILMAP" />
<MAP NAME="EMAILMAP">
<bean:message bundle="cardResources" key="label.card.finish.imagemap1" />
<bean:message bundle="cardResources" key="label.card.finish.imagemap2" />
</MAP>
</TD></TR>
.................