Skip to main content

Posts

Showing posts from October, 2012

Struts2 Resource Handling - Using Hindi language in internationalization (i18n)

Struts2 provides us different ways for handling message resources. Struts2 supports internationalization for different locales and we can provide message resources for different locales. Struts2 will use resource file naming convention through which it identifies that which message resource file to be used within the particular session. See the following configuration. <? xml   version = "1.0"   encoding = "UTF-8" ?> <! DOCTYPE   struts   PUB      "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"      "http://struts.apache.org/dtds/struts-2.0.dtd" > < struts >      < constant   name = "struts.custom.i18n.resources"   value = "global"   / >      < package   name = "default"   namespace = "/"   extends = "struts-default" >          < action   name = "myaction"   class = "MyAction" >              < result   name