struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kranti Parisa" <kranti.par...@gmail.com>
Subject Re: internationalization in struts
Date Tue, 12 Dec 2006 20:16:09 GMT
I Have the following Strcture

WEB-INF
     - classes
          -com
             -login
     - resources
         - application.properties
         - application_fr.properties

which means resources folder is there in WEB-INF and is seperated from the
com.login package containing java code

should <message-resources parameter="resources.application"/> work??


On 12/13/06, Gary Feidt <Gary.Feidt@childrensmn.org> wrote:
>
> What is you package name?  I have an app that called cmo.resources and
> would use the following:
>
> <message-resources parameter="cmo.resources.application"/>
>
> Gary
>
>
> >>> kranti.parisa@gmail.com 12/12/2006 11:38 AM >>>
> Hi,
>
> i am working on internationalization in struts.
>
> for this i did the following
>
> 1) WEB-INF/classes/resources folder defined all the files
> example : application.properties, application_fr.properties ..etc
>
> 2) in each file defined the labels
> example
> label.firstname=First Name
>
> 3) in struts-config.xml file defined the following
> <message-resources parameter="resources.application"/>
>
> 4) when user successfully logs in setting the Globals.LOCALE_KEY into
> session with user specific locale
>
> 5) in jsp
> <bean:message key="label.firstname"/>
>
> i suppose the above steps should work.
> but its displaying null and when i do <message-resources parameter="
> resources.application" null="false"/>
> then its printing it as ???label.firstname???
>
> which is nothing but null.
>
> Please do suggest/help me for this.
>
> Regards
> Kranti
> _______________________________________________________________
>
> Confidentiality Statement:
> This email/fax, including attachments, may include confidential
> and/or proprietary information and may be used only by the
> person or entity to which it is addressed. If the reader of
> this email/fax is not the intended recipient or his or her
> agent, the reader is hereby notified that any dissemination,
> distribution or copying of this email/fax is prohibited. If you
> have received this email/fax in error, please notify the sender
> by replying to this message and deleting this email or
> destroying this facsimile immediately.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
------------------
Best Regards
Kranti Kiran Kumar Parisa
Mobile: +91 - 9849 - 625 - 625             +91 - 9391 - 438 - 738

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message