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...........
![[IMG]](proxy.php?image=http%3A%2F%2Fimg7.imageshack.us%2Fimg7%2F7474%2Fpic1unr.jpg&hash=9e0137b0c2adc85c2385b5742bcbdcf3)
![[IMG]](proxy.php?image=http%3A%2F%2Fimg9.imageshack.us%2Fimg9%2F8121%2Fpic2ahu.jpg&hash=15d85b07a857af8156d0b82fc963a3a6)
![[IMG]](proxy.php?image=http%3A%2F%2Fimg268.imageshack.us%2Fimg268%2F8901%2Fpic4erk.jpg&hash=c262c89913bc004bbca850f1f31976ad)
![[IMG]](proxy.php?image=http%3A%2F%2Fimg7.imageshack.us%2Fimg7%2F4130%2Fpic3hdh.jpg&hash=947a8e102cdb8b1b384c812be8155be8)
![[IMG]](proxy.php?image=http%3A%2F%2Fimg16.imageshack.us%2Fimg16%2F3885%2Fpic5loj.jpg&hash=d0242865beaf6e5c08fe749f7fcaad10)
![[IMG]](proxy.php?image=http%3A%2F%2Fimg268.imageshack.us%2Fimg268%2F9913%2Fpic6i.jpg&hash=16b6e5734c585519312eadb6ca0f20b5)
![[IMG]](proxy.php?image=http%3A%2F%2Fimg443.imageshack.us%2Fimg443%2F733%2Fpic7jzj.jpg&hash=c26b93b03f07d019a72323f93699707e)
![[IMG]](proxy.php?image=http%3A%2F%2Fimg338.imageshack.us%2Fimg338%2F2219%2Fpic8a.jpg&hash=bd3d9e394c9dfb735f3c175026c2ac0a)
![[IMG]](proxy.php?image=http%3A%2F%2Fimg268.imageshack.us%2Fimg268%2F6987%2Fpic9v.jpg&hash=c67171c569c82d6f465033c8cbd9bcfc)
<%@ 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"![[IMG]](proxy.php?image=http%3A%2F%2Fimg212.imageshack.us%2Fimg212%2F4256%2Fpic10n.jpg&hash=32c2c56580b500e85d1b0fc2cde1903a)
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![[IMG]](proxy.php?image=http%3A%2F%2Fimg24.imageshack.us%2Fimg24%2F814%2Fpic11upe.jpg&hash=98c3720473f966916971eafcc585b71f)
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