This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MessageResources are not loaded for three languages, japanese, Turkish, polish

 
rohit nek
Greenhorn
Posts: 2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic