multilingual web application development with JSP/SERVLET
any one tell me, how can i develop a multilingual web application with JSP/SERVLET.Please answer me as soon as possible.......😁
viswas kumar
email id <removed>
Member • Aug 30, 2009
Member • Sep 1, 2009
Administrator • Sep 1, 2009
Maybe it's a better idea to spend some time on the link provided by Sookie and then posting questions about the parts you couldn't understand.viswasknithii sookie
I have already read the link given by you.......but I could not understand ..
please tell me detail about multilingual web application in jsp...........
Member • Sep 1, 2009
Member • Sep 2, 2009
No worries man. Always better to ask questions. May be I gave a very tough link to you 😉. I wanted to tell you following thing in my first post over here only but earlier my machine doesn't have environment required for doing so. Now I made my machine ready for it.viswasknithii sookie
I have already read the link given by you.......but I could not understand ..
please tell me detail about multilingual web application in jsp...........
<%@ taglib prefix="fmt" uri="https://java.sun.com/jsp/jstl/fmt" %>STEP # 8: Also add following two lines also in your "index.jsp"page
<fmt:setLocale value="en_US"/>in <fmt:setLocale>: set "value" of your locale like "en_US" for English(US) or "fr_FR" for French etc..
<fmt:setBundle basename="MessageProperties"/>
<fmt:message key="helloworld"/>In <fmt:message>: set key same as used in MessageProperties.properties file.
<%@page contentType="text/html" pageEncoding="UTF-8"%> <%@ taglib prefix="fmt" uri="https://java.sun.com/jsp/jstl/fmt" %> <html <fmt:setLocale value="en_US"/> <fmt:setBundle basename="MessageProperties"/> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <h2><fmt:message key="helloworld"/>!</h2> </body> </html>STEP # 10: Run and deploy the project. In NETBEANS - you can simply right click on "index.jsp" and select "Run File"
Member • Sep 2, 2009
Member • Sep 2, 2009
helloworld=Bonjour tout le mondeIn "index.jsp" we need to change "value" attribute of <fmt:setLocale> to "fr_FR" and in <fmt:setBundle> set "basename" as "MessageProperties_fr".
<%@page contentType="text/html" pageEncoding="UTF-8"%> <%@ taglib prefix="fmt" uri="https://java.sun.com/jsp/jstl/fmt" %> <html> <fmt:setLocale value="fr_FR"/> <fmt:setBundle basename="MessageProperties_fr"/> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <h2><fmt:message key="helloworld"/>!</h2> </body> </html>Now again run the file, you will get your output["Hello World"] in French as following
Member • Sep 2, 2009
Administrator • Sep 2, 2009
Dude, how about trying out something on your own?viswasknit@#-Link-Snipped-#
I am confused that what should i do for translate a english web project in hindi web project ......
would I make to .properties file of all words of english to hindi...
plz give me proper solution ......
Member • Sep 2, 2009
Member • Sep 5, 2009
Administrator • Sep 5, 2009
Please avoid off-topic comments.viswasknithappy teachers day.........
Member • Feb 6, 2017