Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

internalisation to hindi language not getting proper display...  RSS feed

anildhulipalla kumar
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<title>Font Test Interface</title>
Select your language :
<a href="">English</a>
<a href="">French</a>
<a href="">German</a>
<a href="">Italian</a>
<a href="">Hindi</a>
<bean:message key="label.welcome" />

Action class code is

public ActionForward hindi(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
HttpSession session = request.getSession();
Locale locale = new Locale("hi","in");
session.setAttribute("org.apache.struts.action.LOCALE", locale);
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 .....
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!