Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7091131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:08:42+00:00 2026-05-28T08:08:42+00:00

Hi I am trying to create an application with hindi fonts (Only Lable required

  • 0

Hi I am trying to create an application with hindi fonts (Only Lable required to be shown in hindi)with the help of Struts2 i18n feature.
I have cretaed required properties file as global_hi.properties
for the label username ,password and submit button.
It works fine for submit button,but for password its showing *??? .
I have attached my jsp ,struts.xml and proerties fiel.
struts.xml is

 <struts>
        <constant name="struts.custom.i18n.resources" value="global" />
        <constant name="struts.devMode" value="true" />
        <package name="default" extends="struts-default, tiles-default,jfreechart-default">
            <interceptors>
                <interceptor name="loginInterceptor" class="common.AuthenticationInterceptor" />
                <interceptor-stack name="chkSession">
                    <interceptor-ref name="i18n"/>
                    <interceptor-ref name="defaultStack" />
                    <interceptor-ref name="loginInterceptor" />
                </interceptor-stack>
            </interceptors>

            <global-results>
                <result name="invalid.token">common/doublePost.jsp</result>
                <result name="loginAction" type="redirect">/sessionnotfound.jsp</result>

            </global-results>


            <action name="showHomePage">
                <result type="tiles">Login</result>
            </action>
            <action name="locale">
                <result type="tiles">Login</result>
            </action>
        </package>
</struts>

my jsp is

    <%@page contentType="text/html;charset=utf-8" pageEncoding="UTF-8"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >

        <head>
            <title>Administration Login</title>
            <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
            <link href="/LiquorShopManagementSystem/css/stylesheet.css" type="text/css" rel="stylesheet">

            <s:head/>
        </head>
        <body>
            <div id="header"></div>
            <s:form name="frmAdminLogin" id="frmAdminLogin" method="post" action="doLogin" validate="true">
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="border-right:fuchsia 2px solid;">
                            <img src="/LiquorShopManagementSystem/images/BookShop.jpg" height="250"/>
                        </td>
                        <td valign="middle">
                            <table align="center" cellspacing="0" cellpadding="4" border="0" width="248px">
                                <tr>
                                    <td colspan="2" class="spanHeader">
                                        <span>Back Officeghj</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="left" class="error">
                                        <s:property value="message" />
                                    </td>
                                </tr>
                                <tr>
                                    <td valign="middle">
                                         <s:textfield required="true" requiredposition="left" maxLength="25" key="global.username" name="userMaster.loginid" title="Enter Username"/>
                                         <s:password required="true" requiredposition="left" maxLength="8" key="global.password" name="userMaster.Password" title="Enter Password"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <s:submit cssClass="buttonText" cssStyle="background:url(/BookShop/images/submit_bg.gif) no-repeat scroll 37px 0px;" name="login" key="global.submit" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </s:form>
</body>
</html>

and properties file is

#Global messages
global.username = Username
global.password =\u0938\u092E\u094D\u092E\u0947\u0932\u0928
global.submit =\u0938\u092E\u094D\u092E\u0947\u0932\u0928

although it is working fine for submit tag.
Can any one suggest for any workaround for this.

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:08:43+00:00Added an answer on May 28, 2026 at 8:08 am

    This is what i tried and its working fine for me.All i changed the value in my property file

    global.password=\u092A\u093E\u0938\u0935\u0930\u094D\u0921
    

    and here is the output screenshot

    enter image description here

    i believe you need to check the way you are encoding your Hindi characters.
    surprising, it giving following output when i am using your entries..

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I stack with this, I'm trying to create application using TabLayout. I have 3
Im trying to create a application that should only be visible in the status
I trying to create application whad add controlls dynamicaly. I have masterpage, my asp:Content
I am trying to create application with Zend framework so I have created basic
I have started Gwt last week. And I was trying to create application without
I'm trying to create an application that will let me execute a method specified
I am trying to create an application that makes a window (external to the
I'm trying to create an application where there is a JSplitPane which contains the
I'm trying to create an application that uses the iPhone MapView (under Google Code).
I'm trying to create an application in interface builder, and I'm having a problem.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.