This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes internalisation to hindi language not getting proper display... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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 .....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: internalisation to hindi language not getting proper display...
 
Similar Threads
best option for implementing form
Character set encoding issue
how to get utf-8 data from query string in JSP
Problem With I18n feature of Struts2
jsp form with two submit button