java - How to get locale within JSTL with dash as separator? -


pagecontext.request.locale return locale "en_us"

but current javascript library (dojo) seeking 'en-us', 'es-es'..etc

is there api use other customized javascript function so?

the locale class has tolanguagetag() method want: http://docs.oracle.com/javase/7/docs/api/java/util/locale.html#tolanguagetag()


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -