Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Programmatically changing Locale in JSP

 
Adrian Enns
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I programmatically change the locale in a JSP?

I've seen:

<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<fmt:setLocale value="${cookie.preferredLocale.value}" />

I'm not sure how I get this code or how I reference it in my web.xml??

Any help out there for me?
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Refer to the Chapter 12 of this book
cheers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic