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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -