Skip to Main Content
Spring MVC Beginner's Guide
book

Spring MVC Beginner's Guide

by Amuthan Ganeshan
June 2014
Beginner to intermediate content levelBeginner to intermediate
304 pages
7h 25m
English
Packt Publishing
Content preview from Spring MVC Beginner's Guide

Time for action – adding internationalization

Technically, we can add as much language support as we want for internationalization, but for demonstration purposes, I am going to show you how to make an add product page for Dutch language support. Perform the following steps:

  1. Create a file called messages_nl.properties under /src/main/resources in your project, add the following lines in it, and save the file:
    addProduct.form.productId.label = Nieuw product ID addProduct.form.name.label = Naam addProduct.form.unitPrice.label = Prijs unit addProduct.form.description.label = Beschrijving addProduct.form.manufacturer.label = Manufacturer addProduct.form.category.label = Fabrikant addProduct.form.unitsInStock.label = Aantal op voorraad addProduct.form.condition.label ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Spring MVC Beginner's Guide - Second Edition

Spring MVC Beginner's Guide - Second Edition

Amuthan Ganeshan
Spring MVC: Designing Real-World Web Applications

Spring MVC: Designing Real-World Web Applications

Shameer Kunjumohamed, Hamidreza Sattari, Alex Bretet, Geoffroy Warin

Publisher Resources

ISBN: 9781783284870Supplemental Content