anildhulipalla kumar

Greenhorn
+ Follow
since Sep 29, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by anildhulipalla kumar

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 .....
13 years ago