This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes JSP and the fly likes Programmatically changing Locale in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Programmatically changing Locale in JSP" Watch "Programmatically changing Locale in JSP" New topic
Author

Programmatically changing Locale in JSP

Adrian Enns
Ranch Hand

Joined: Aug 11, 2004
Posts: 48
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

Joined: Aug 15, 2004
Posts: 2874
Refer to the Chapter 12 of this book
cheers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Programmatically changing Locale in JSP