June 2014
Beginner to intermediate
304 pages
7h 25m
English
Let's see how to externalize the label texts in our addProduct.jsp file:
addProduct.jsp file and add the following taglib reference at the top:<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<label> tag's value as <spring:message code="addProdcut.form.productId.label"/>, as shown as follows:<label class="control-label col-lg-2 col-lg-2" for="productId"> <spring:message code= "addProduct.form.productId.label"/> </label>
messages.properties under /src/main/resources in our project and add the following line in it:addProduct.form.productId.label = New Product ID
DispatcherServlet-context.xml ...Read now
Unlock full access