/* Copyright (c) SEMM NL All rights reserved.
Author : Paul Hamaker. Part of JavaLessons.com
This code is for educational purposes only. Use at own risk.*/

1. <%@ taglib 

2.  uri="http://java.sun.com/jsp/jstl/fmt" 

3.  prefix = "fmt" 

4. %>  

5. <fmt:setLocale value="en_US"/> 

6. <%-- fmt:setLocale value="it_IT"/ --%> 

7. <%-- fmt:setLocale value="nl_NL"/ --%> 

8.  

9. <fmt:setBundle basename='offer'/> 

10.  

11. <html><head><title

12. <fmt:message key='tietul'/> 

13. </title></head

14. <body

15.  

16.  <fmt:message key='salespitch1'/> 

17.   

18.  <jsp:useBean id="now" class="java.util.Date" /> 

19.   

20.  <fmt:formatDate value="${now}" pattern="MMMM yyyy" /> 

21.   

22.  <fmt:message key='salespitch2'/> 

23. US$  

24.  <fmt:formatNumber type="number" value="20.9" 

25.      maxFractionDigits="2" minFractionDigits="2" /> 

26.  

27. </body></html>  

28.  

29. ==== /WEB-INF/classes/offer_en.properties ============= 

30. tietul=This offer is unbelievable 

31. salespitch1=This month,  

32. salespitch2=, this message is only  

33. ==== /WEB-INF/classes/offer_it.properties ============= 

34. tietul=Oferta incredibile 

35. salespitch1=Questo mese,  

36. salespitch2=, questo messagio solamente   

37. ==== /WEB-INF/classes/offer_nl.properties ============= 

38. tietul=Ongelooflijke aanbieding 

39. salespitch1=Deze maand,  

40. salespitch2=, kost dit bericht slechts