Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Programmatically changing Locale in JSP  RSS feed

 
Adrian Enns
Ranch Hand
Posts: 51
  • 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
Boost this thread!