| Author |
MessageResources are not loaded for three languages, japanese, Turkish, polish
|
rohit nek
Greenhorn
Joined: Jan 23, 2012
Posts: 2
|
|
I have a welcome page and if there is any error in the entered data, the same page will be displayed along with errors message using struts messageresources. I have resource bundles in 7 or 8 languages. The Error message is getting displayed for all other langusges except for the three langs i.e Japanese, Turkish, Polish
Struts-config.xml
--------------------
<message-resources parameter="ApplicationResources" null="false"/>
I have the following files in web-inf/classess
ApplicationResources_tr.properties
ApplicationResources_ja.properties
ApplicationResources_pl.properties
ApplicationResources_hu.properties
ApplicationResources_ru.properties
ApplicationResources_es.properties
ApplicationResources_en.properties
Please suggest me what could be problem here? How can I resolve this. This is very urgent for me. ANy idea is very much appreciated.
|
 |
Komal Renu
Ranch Hand
Joined: Jul 21, 2011
Posts: 50
|
|
May be that the properties file for those three languages are using some symbols which are creating a conflict.
Thanks,
Komal Renu
|
 |
Vicky Vijay
Ranch Hand
Joined: Apr 23, 2008
Posts: 123
|
|
Please let me know ..
What kind of an error/issue your are getting for Japanese, Turkish, Polish language ?
Is any struts error message is been displayed ??
or
default value from the properties file, is been displayed ???
|
 |
rohit nek
Greenhorn
Joined: Jan 23, 2012
Posts: 2
|
|
I have a welcome.jsp and error.jsp
In error.jsp, I have the follwoing code
<%@page import="org.apache.struts.action.ActionMessage" %>
<%@page import="org.apache.struts.action.ActionMessages" %>
<%@page import="org.apache.struts.Globals" %>
<%
ActionMessage error= new ActionMessage("welcomeError");
ActionMessages messages = new ActionMessages();
messages.add("welcomeError", error);
request.setAttribute(Globals.ERROR_KEY,messages);
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
%>
<jsp:include page="welcome.jsp" />
in welcome.jsp, I am using the tag <html:errors/> to display any error message from the server side.
This is working for other languages except for Japanese, turkish and polish
In other languages, I am getting the error message in welcome.jsp. But for these three langs, I am getting white blank page both in IE, firefox
|
 |
 |
|
|
subject: MessageResources are not loaded for three languages, japanese, Turkish, polish
|
|
|