aspose file tools*
The moose likes Struts and the fly likes internalisation to hindi language not getting proper display... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "internalisation to hindi language not getting proper display..." Watch "internalisation to hindi language not getting proper display..." New topic
Author

internalisation to hindi language not getting proper display...

anildhulipalla kumar
Greenhorn

Joined: Sep 29, 2010
Posts: 1
My code is:

java.lang.Jsp page is


<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<title>Font Test Interface</title>
</head>
<body>
<table>
<tr>
<td>
Select your language :
<a href="changeLocale.do?method=english">English</a>
<a href="changeLocale.do?method=french">French</a>
<a href="changeLocale.do?method=german">German</a>
<a href="changeLocale.do?method=italian">Italian</a>
<a href="changeLocale.do?method=hindi">Hindi</a>
</td>
</tr>
<tr>
<td>
<bean:message key="label.welcome" />
</td>
</tr>
</table>
</body>
</html>


Action class code is


public ActionForward hindi(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
request.setCharacterEncoding("UTF-8");
HttpSession session = request.getSession();
Locale locale = new Locale("hi","in");
session.setAttribute("org.apache.struts.action.LOCALE", locale);
System.out.println("###########hindi");
return mapping.findForward(SUCCESS);
}

i am getting browser but not in hindi format i am putting properties file in utf-8 only still....
please help me .....
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: internalisation to hindi language not getting proper display...