Now your properties file must be called package.properties :)

see display tag refernce

On Wed, Jan 27, 2010 at 5:30 PM, Nicola Bortolotti <
bortolotti.nic...@gmail.com> wrote:

> Thank you Saiid, but it continue not working..
> Probably I don't understand. I've update this constant
> struts.custom.i18n.resources=package
> in "struts2-core-2.1.6.jar/org/apache/struts2/default.properties" (the
> only default.properties file into my project),
> and restart server, but, AS BEFORE MODIFY CONSTANT,
>
>  --------------------------------------------------------
>  ...
>  <p> test1: <s:text name="xxx" /> </p>
>  ...
>  <display:table name="lista" pagesize="20">
>    <display:column property="id" titlekey="xxx" />
>  </display:table>
>  --------------------------------------------------------
>
> <s:text name="xxx" /> retrive correct value,
> <display:column property="id" titlekey="xxx" /> doesn't retrive
> nothing.....
>
> so, probably, I don't understand something..
> Anyway, thank you very much for your effort.
>
>  Nicola
>
>
>
>
>
>
>
>
>
>
> Like that it wont work. Mention your properties file in struts.properties
> or
> struts.xml constant
>
> struts.custom.i18n.resources=package
>
> in that the xxx in titleKey must be defined.
>
> On Wed, Jan 27, 2010 at 4:40 PM, Nicola Bortolotti <
> bortolotti.nic...@gmail.com> wrote:
>
> > I've just try that!
> > Follow part of coding
> >
> > I've created "displaytag_IT.properties", "package_it.properties",
> > "package_en.properties" and I've wrote into every file a property as
> > xxx=property1111
> >
> > in the test code of my jsp_page, property were founded from struts tag
> > but not from displaytag, in the caption of the table:
> >
> > --------------------------------------------------------
> > ...
> > <p> test1: <s:text name="xxx" /> </p>
> > ...
> > <display:table name="lista" pagesize="20">
> >  <display:column property="id" titlekey="xxx" />
> > </display:table>
> > --------------------------------------------------------
> >
> > Doesn't work: insteed write in column header "property1111", it display
> > "id"...
> >
> > Other suggestion?
> > Thanks,
> >   Nicola
> >
> >
> >
> >
> > ---------- Messaggio inoltrato ----------
> > From: Saeed Iqbal <saee...@gmail.com>
> > To: Struts Users Mailing List <user@struts.apache.org>
> > Date: Wed, 27 Jan 2010 15:32:52 +0500
> > Subject: Re: internationalize displaytag into struts2
> > Use titleKey.
> >
> >
> > On Wed, Jan 27, 2010 at 3:29 PM, Nicola Bortolotti <
> > bortolotti.nic...@gmail.com> wrote:
> >
> > > Hi all, first of all, sorry for terrible English.
> > > In these days I've developed my first, simple application with
> > > struts2, and, after putting properties file in correct place, I've
> > > internationalized it.
> > > Then I've looked for something about how to display a table (data
> > > grid) and, on your lists, I found two different solution: "struts2
> > > jQuery Plugin" (too difficult for a newbie as me..) and the simpler
> > > displaytag (http://displaytag.sourceforge.net/1.2).
> > >
> > > After some work I get displaytag working.
> > > The question is: how can I internationalize header and captions of
> > > displaytag into struts2?
> > > Where should I put properties file? Should I modify something into
> > > displaytag-1.2.jar?
> > > I follow the manual (http://displaytag.sourceforge.net/1.2/i18n.html)
> > > and google around, but I don't understand..
> > >
> > >
> > > Thank you very much,
> > >
> > >  -Nicola
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
>
>
> --
> Saeed Iqbal
> Independant Consultant
> J2EE - Application Architect / Developer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer

Reply via email to