Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

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

 
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.
 
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
 
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
 
I'm not sure if I approve of this interruption. But this tiny ad checks out:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!