This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
kiran kumar reddy
Ranch Hand
Posts: 94
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 94
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kiran,

Please refer the feature of Internationalization in struts. Which will give you the idea.
Refer locale here
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic