aspose file tools*
The moose likes Struts and the fly likes displaytag localisation :urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "displaytag localisation :urgent" Watch "displaytag localisation :urgent" New topic
Author

displaytag localisation :urgent

ankita sarma
Greenhorn

Joined: Nov 13, 2012
Posts: 25
display tag localisation :urgent

Hi all,

I am trying localisation in struts (hindi to english and english to hindi).

I want to change the titles in display tag

for that i have made one displaytag.properties

have a look

locale.provider=resources.I18nStruts2Adapter
locale.resolver=resources.I18nStruts2Adapter
sort.amount=list
paging.banner.placement=top
paging.banner.placement=bottom
paging.banner.all_items_found=
paging.banner.some_items_found=
paging.banner.one_item_found=
paging.banner.onepage=
paging.banner.full=<div class="pagelinks" align="right"><a href={1}><img src="images/arrow_main.gif"></a>
<a href={2}><img src="images/arrow_main.gif"></a>{0}
<a href={3}><img src="images/arrow_main.gif"></a>
<a href={4}><img src="images/arrow_main.gif"></a></div>
paging.banner.first=<div class="pagelinks" align="right">
<a href={1}><img src="images/arrow_main.gif"></a><a href={2}><img src="images/arrow_main.gif"></a> {0}
<a href={3}><img src="images/arrow_main.gif"></a><a href={4}><img src="images/arrow_main.gif"></a></div>
paging.banner.last=<div class="pagelinks" align="right">
<a href={1}><img src="images/first.gif"></a><a href={2}><img src="images/prev.gif"></a> {0}
<a href={3}><img src="images/next.gif"></a><a href={4}><img src="images/last.gif"></a></div>
export.banner=<div class="pagelinks" align="right">{0}</div>
export.types=csv excel xml pdf rtf
export.excel=true
export.csv=true
export.xml=true
export.pdf=true
export.rtf=true
export.excel.class=org.displaytag.export.excel.DefaultHssfExportView
export.pdf.class=org.displaytag.export.DefaultPdfExportView
export.rtf.class=org.displaytag.export.DefaultRtfExportView
export.excel.filename=data.xls
export.pdf.filename=data.pdf
export.xml.filename=data.xml
export.csv.filename=data.csv
export.rtf.filename=data.rtf
serial.number=serial number
test.key=test key



and In my JSP I am writing display tag like this

<display:table name="requestScope.versionList" pagesize="12" class="internalTable" excludedParams="*" cellspacing="0" requestURI="GuideLine.do">


<display:column href="/IGRS/GuideLineShow.do" paramId="guideLineID" paramProperty="hdnGuideDuration"
class="tableFieldValue" property="guideLineID" headerClass="tableFieldName" >
</display:column>
<display:column class="tableFieldValue" property="fromDepositeDate" title="Duration From" headerClass="tableFieldName" titleKey="test.key"/>
<display:column class="tableFieldValue" property="toDepositeDate" title="Duration To"headerClass="tableFieldName"/>
<display:column class="tableFieldValue" property="status" title="Creation Status"headerClass="tableFieldName"/>
<display:column class="tableFieldValue" property="statusChecker" title="Approval Status"headerClass="tableFieldName"/>
<display:setProperty name="paging.banner.placement" value="bottom" />

</display:table>



I am testing on this test.key to check if the titleKey is working or not. But its not showing anything.


My Console shows Following ; but i dnt know how to resolve it

17:12:45,883 DEBUG [displaytag.properties.TableProperties] Was not able to load a custom displaytag.properties; Can't find bundle for base name displaytag, locale en_US
17:12:45,887 INFO [displaytag.properties.TableProperties] No LocaleResolver configured.

I have tried everything found on internet but still cant internatinalise the displaytag.

Please Help.

I am really stuck on this very badly. Any clue would be appreciated.
I was reading about I18Nresolver something. I have no clue how to internationalise diaplya tag.

ankita sarma
Greenhorn

Joined: Nov 13, 2012
Posts: 25
if you could give me an example of displaytag in diffrent language that would be appreciated
 
 
subject: displaytag localisation :urgent