This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes what is the use of  locale=true/false in jsp pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "what is the use of  locale=true/false in jsp pages" Watch "what is the use of  locale=true/false in jsp pages" New topic
Author

what is the use of locale=true/false in jsp pages

kiran kumar reddy
Ranch Hand

Joined: Jun 28, 2012
Posts: 94

hi all,
on my way of understanding my first struts application. i came across this statement in one of related jsp file >>html:html locale="true"<<
what does it actually mean? i tried even putting false in that statement but got the same output as when it was as true. what actually it meant?
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi Kiran,

Its used to store local as par the struts document "Set to true in order to store a Locale in the session based on the current request's Accept-Language header".

If its set to true then it will store the locale of the language which is used to render the page with specific language.

Regards
jatan
kiran kumar reddy
Ranch Hand

Joined: Jun 28, 2012
Posts: 94

jatan bhavsar wrote:Hi Kiran,

Its used to store local as par the struts document "Set to true in order to store a Locale in the session based on the current request's Accept-Language header".

If its set to true then it will store the locale of the language which is used to render the page with specific language.

Regards
jatan

means it will store the language like english?? what is locale of the language what does it mean?
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi Kiran,

Please refer the feature of Internationalization in struts. Which will give you the idea.
Refer locale here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is the use of locale=true/false in jsp pages
 
Similar Threads
Need Help in accesing the bundle / key value in action class
Internationalisation: Struts only detects browser's language settings after login
Question about boolean short circuit
HFSJ EL Syntax on pages 393-94
date formatting