
2. create a package "com.example.test and place the property file inside the package
3. create the JSP page with name “index.jsp” and place the code below in that page.
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<form action="tt.jsp" method="post">
English:
<input type="radio" checked="checked"
name="lang" value="en">
<br>
French:
<input type="radio"
name="lang" value="fr">
<input type="submit" name ="Submit" value="Submit"></input>
</form>
</body>
</html>
4 create the JSP page with name “tt.jsp” and place the below code inside that page.
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.*"%>
<%@ page import="com.example.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
String l1=null;
l1=request.getParameter("lang");
Locale lc;
ResourceBundle rb;
if(l1!=null){
lc = new Locale(l1);
rb = ResourceBundle.getBundle("com.example.test.resources", lc);
}
else{
lc = new Locale("en");
rb = ResourceBundle.getBundle("com.example.test.resources", lc);
}
%>
<%=rb.getString("helloworld")%>
</body>
</html>
5. To implement internationalization (i18n), create a property file for each language and place all those property file in one package as shown in the image above.
5.1 create the property file in the name of “resources_en.properties”
5.2 Place the below code inside the “resources_en.properties”
helloworld=Hello world
5.3 create the property file in the name of “resources_fr.properties”
5.4 Place the below code inside the “resources_fr.properties”
helloworld=Bonjour tout le monde
6. Now just run the index.jsp file, the code will works.
Thank you for read this blog
Best informative blog. Thank you.
ReplyDeletecima courses in hyderabad | ISFS
Great Article
DeleteIEEE Final Year Projects for CSE
IEEE Project Centers in Chennai
Great Article
DeleteIEEE Final Year Projects for CSE
IEEE Project Centers in Chennai
Excellent informative blog, keep for sharing.
ReplyDeleteBest System Integration services | Massil Technologies
Excellent informative blog, keep sharing.
ReplyDeleteCA institute in hyderabad | Avinash College of Commerce
Excellent informative blog, Thanks for sharing.
ReplyDeletecs institutes in hyderabad | Avinash College of Commerce
Excellent informative blog, keep for sharing.
ReplyDeleteBest System Integration services | Massil Technologies
The Voice Winner 2018
ReplyDeleteThe Voice Usa
The Voice Season 15
The Voice 2018 Winner
I like this article.I was searching over search engines and found your blog and its really helps thank you so much Happy New Year 2019 Wish
It's Really A Great Post. Looking For Some More Stuff.
ReplyDeleteshriram break free
Thanks for the nice information and also it's very inspirational and Thanks for the detailed explanation. Really useful. Keep sharing more. Regards. Click Here for Commerce College in Hyderabad
ReplyDeleteWow...What an excellent informative blog, really helpful. Thank you. Best Oracle DBA Course Training| orskl
ReplyDeleteReally very great information to be provided and the All points discussed were worth reading and i’ll surely work with them all one by one.
ReplyDeleteBest C and C++ Programming Training Academy in Kanchipuram
Wonderful post. Thank you for updating such an informative content.
ReplyDeleteBest Python Training Academy in Kanchipuram
Very good informative blog, keep sharing
ReplyDeleteBest Tally ERP 9.0 Training Academy in Kanchipuram
Your Blog is nice and informative..Thanks for sharing this valuable information with us..I am visiting this website regularly, this web site sharing nice thoughts
ReplyDeleteBest MATLAB Training Academy in Kanchipuram
Thanks for this grateful information. all this information is very important to all the users and can be used good at all this process.
ReplyDeleteBest Web Designing Training Academy in Kanchipuram
I really enjoyed your blog Thanks for sharing such an informative post.Looking For Some More Stuff.
ReplyDeleteshuttering works
I really enjoyed your blog Thanks for sharing such an informative post.Looking For Some More Stuff.
ReplyDeletebest seo company in bangalore SSS digital Marketing
Really Interesting Article . Nice information will look forwardr next article update Keep posting the articles :)
ReplyDeleteIf you are looking for any data science Related information please visit our website Data Science Course In Bangalore page!
نجار ابواب بالرياض نجار ابواب بالرياض
ReplyDeleteتركيب ستائر بالرياض افضل شركة تركيب ستائر بالرياض
تنظيف مكيفات بالرياض شركة غسيل مكيفات بالرياض
شركة تنظيف افران الغاز بالرياض تنظيف افران بالرياض
Thanks for this blog are more informative contents step by step. I here by attached my site would you see this blog.
ReplyDelete7 tips to start a career in digital marketing
“Digital marketing is the marketing of product or service using digital technologies, mainly on the Internet, but also including mobile phones, display advertising, and any other digital medium”. This is the definition that you would get when you search for the term “Digital marketing” in google. Let’s give out a simpler explanation by saying, “the form of marketing, using the internet and technologies like phones, computer etc”.
we have offered to the advanced syllabus course digital marketing for available join now.
more details click the link now.
https://www.webdschool.com/digital-marketing-course-in-chennai.html
Amazing article useful information.
ReplyDeleteWeb designing trends in 2020
When we look into the trends, everything which is ruling today’s world was once a start up and slowly begun getting into. But Now they have literally transformed our lives on a tremendous note. To name a few, Facebook, Whats App, Twitter can be a promising proof for such a transformation and have a true impact on the digital world.
we have offered to the advanced syllabus course web design and development for available jon now.
more details click the link now.
https://www.webdschool.com/web-development-course-in-chennai.html
As such, an online college science course is the best way to learn the theory and application of the specific field of science you are interested in. machine learning course in hyderabad
ReplyDeleteThanks for sharing such a nice info.I hope you will share more information like this. please keep on sharing!
ReplyDeleteInplant training in chennai
Inplant training in chennai
Inplant training in chennai for cse
Inplant training in chennai for ece
Inplant training in chennai for mechanical
Inplant training in chennai for ece students
Inplant training in chennai for eee
Help full post, lots of information
ReplyDeleteUipath
Uipath Tutorial
Types of uipath
Uipath Architecture
Products fo Uipath
Workflow in Uipath
process of uipath
uipath installation
creating script in uipath
project types and templates in uipath
Thanks for sharing such a great blog......!!!
ReplyDeletefull form
full form of nrc
nrc full form
mbbs full form
full form of rip
Thank you for posting informative insights, I think we have got some more information to share with! Do check out Oracle Training In Chennai , Oracle PLSQL Training In Chennai , Oracle DBA Training In Chennai , AWS Training in Chennai and let us know your thoughts. Let’s have great learning!
ReplyDeleteWorth reading! Our experts also have given detailed inputs about these trainings & courses! Presenting here for your reference. Do checkout
ReplyDeleteaws training in chennai & enjoy learning more about it.
Learn Amazon Web Services for excellent job opportunities from Infycle Technologies, the best AWS training institute in Chennai. Infycle Technologies gives the most trustworthy AWS course in Chennai, with full hands-on practical training from professional trainers in the field. Along with that, the placement interviews will be arranged for the candidates, so that, they can meet the job interviews without missing them. To transform your career to the next level, call 7502633633 to Infycle Technologies and grab a free demo to know more.Best AWS Training in Chennai
ReplyDeleteAnval feeders & airlocks for all industries
ReplyDeleteConfigure the valve to your application
Rotary valves
rotary airlock feeders
rotary valves rs series
Easy Clean Rotary Valves
valves
self cleaing dual rotor
Want to set your career towards Big Data? Then Infycle is with you to make this into your life. Infycle Technologies gives the combined and best Big Data Hadoop training in Chennai, along with the 100% hands-on training guided by professional teachers in the field. In addition to this, the mock interviews for the placement will be guided to the candidates, so that, they can face the interviews with full confidence. Once after the mock interview, the candidates will be placed in the top MNC's with a great salary package. To get it all, call 7502633633 and make this happen for your happy life.Big Data Hadoop Training in Chennai | Infycle Technologies
ReplyDeleteyeezy boost 700
ReplyDeletelebron 18
nike off white
golden goose outlet
golden goose
supreme clothing
moncler jackets
kyrie 5
golden goose
supreme t shirt
blood pressure watch professional in R&D wearable blood pressure monitor, in the innovative form of a wrist watch, proactively monitors your heart health by turning real-time heart data into heart.
ReplyDeletemason jar lids canning lids supplier. offer canning Lids in different style and size
Cervical spine massager We aim to create a healthy lifestyle that assists every individual to de-stress, relax. unwind and streamline a pain-free life and at the same time feel and look amazing.
sex machine for her Choose Sex Machine to Get Orgasm and Enjoy Life|
neon light for roomNeon Signs Light Is One-of-a-Kind Activities Designed and Hosted by Expert Locals. All Experiences are Vetted for Quality.
Infycle Technologies, the top software training institute and placement center in Chennai offers the Best Digital Marketing course in Chennai for freshers, students, and tech professionals at the best offers. In addition to Digital Marketing, other in-demand courses such as DevOps, Data Science, Python, Selenium, Big Data, Java, Power BI, Oracle will also be trained with 100% practical classes. After the completion of training, the trainees will be sent for placement interviews in the top MNC's. Call 7504633633 to get more info and a free demo.
ReplyDeleteLearn Hadoop Training in Chennai for excellent job opportunities from Infycle Technologies, the best Big Data training institute in Chennai. Infycle Technologies gives the most trustworthy Hadoop training in Chennai, with full hands-on practical training from professional trainers in the field. Along with that, the placement interviews will be arranged for the candidates, so that, they can meet the job interviews without missing them. To transform your career to the next level, call 7502633633 to Infycle Technologies and grab a free demo to know moreTop Hadoop Training in Chennai | Infycle Technologies
ReplyDelete
ReplyDeletesex machine Online Shop
fucking machines Online Shop
sex machine for her Online Shop
patio heater Online Shop
canning lids Online Shop
dog training collars Online Shop
food truck Online Shop
silk durag Online Shop
sewing machine Online Shop
our website https://www.dolabuy.su you can find out more www.dolabuy.ru this page Dolabuy Gucci
ReplyDelete