File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Murach's Java Servlets and JSP this week in the Servlets 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 .....
 
jQuery in Action, 2nd edition
 
subject: internalisation to hindi language not getting proper display...
 
Similar Threads
Problem With I18n feature of Struts2
jsp form with two submit button
how to get utf-8 data from query string in JSP
best option for implementing form
Character set encoding issue