0

I am trying to display Hindi fonts on JSP through property file. My property file named as Messages.properties contains following key-value pairs:

basic.title = कृषि ऋण basic.menu1 = ये आपके लिए क्यूँ सही हैं basic.menu2 = ब्लॉग basic.menu3 = टूल

My JSP code to read this property file is as follows:

<%@ page import = "java.util.ResourceBundle" %>
     <% ResourceBundle resource = ResourceBundle.getBundle("Messages");
    String title=resource.getString("basic.title");
    String menu1=resource.getString("basic.menu1");
    String menu2=resource.getString("basic.menu2");
     %>

Now I am accessing value of title in my JSP as follows

<%=title%>

But it gives output shown in following image:

enter image description here

I have also follow solution

given here

Please suggest me, what can I do next ?

Nishral
  • 25
  • 5

0 Answers0