Struts2 use displaytag how to read diffrent displaytag_language.property
my Struts2 project use displaytag ,I want to have a i18n site ,
so I already use language(en,cn,jp) put in the HttpSession,
now I only have a displaytag.properties ,so I may create displaytag_en.properties,displaytag_cn.properties,displaytag_jp.properties
,and I don't known how to read diffrent properties by session.get("language"),thanks.
displaytag.properties
ufeffbasic.empty.showtable=false
basic.show.header=true
# page | list
sort.amount=page
export.amount=list
export.decorated=true
paging.banner.group_size=8
paging.banner.placement=bottom
css.tr.even=even
css.tr.odd=odd
css.th.sorted=sorted
css.th.ascending=order1
css.th.descending=order2
css.table=
css.th.sortable=sortable
# factory classes for extensions
factory.requestHelper=org.displaytag.util.DefaultRequestHelperFactory
# factory class for decorators
factory.decorator=org.displaytag.decorator.DefaultDecoratorFactory
# locale provider (Jstl provider by default)
#locale.provider=org.displaytag.localization.I18nJstlAdapter
# locale provider (Jstl provider by default)
locale.provider=gov.nia.aps.adm.util.I18nStruts2Adapter
# locale.resolver (nothing by default, simply use locale from request)
locale.resolver=gov.nia.aps.adm.util.I18nStruts2Adapter
export.types=excel
export.csv.class=org.displaytag.export.CsvView
export.excel.class=org.displaytag.export.excel.DefaultHssfExportView
export.xml.class=org.displaytag.export.XmlView
export.pdf.class=org.displaytag.export.PdfView
export.csv=false
export.csv.label=<span class="export csv">CSV </span>
export.csv.include_header=true
export.csv.filename=output.csv
export.excel=true
export.excel.label=<span class="export excel">Excel </span>
export.excel.include_header=true
export.excel.filename=output.xls
export.xml=false
export.xml.label=<span class="export xml>XML </span>
export.xml.filename=
export.pdf=false
export.pdf.label=<span class="export pdf">PDF </span>
export.pdf.include_header=true
export.pdf.filename=
export.rtf=false
export.rtf.label=<span class="export rtf">RTF </span>
export.rtf.include_header=true
export.rtf.filename=
# messages
basic.msg.empty_list=u76eeu524du6c92u6709u8cc7u6599u3002
basic.msg.empty_list_row=<tr class="empty"><td colspan="0">u76eeu524du6c92u6709u8cc7u6599u3002</td></tr>
error.msg.invalid_page=invalid page
export.banner=<div class="exportlinks">u532fu51fa : 0</div>
export.banner.sepchar= |
paging.banner.item_name=u7b46
paging.banner.items_name=u7b46
paging.banner.no_items_found=<div align="right"><span class="pagebanner">u6c92u6709u8cc7u6599u3002</span>
paging.banner.one_item_found=<div align="right"><span class="pagebanner">u53eau6709 1 0u8cc7u6599u3002</span>
paging.banner.all_items_found=<div align="right"><span class="pagebanner">u5171u6709 0 1u8cc7u6599, u76eeu524du986fu793a 0 u7b46u3002</span>
paging.banner.some_items_found=<div align="right"><span class="pagebanner">u5171u6709 0 1u8cc7u6599, u76eeu524du986fu793au7b2c 2 u7b46u81f3u7b2c 3 u7b46u8cc7u6599u3002</span>
paging.banner.full=<span class="pagelinks">[<a href="1">u7b2cu4e00u9801</a>/<a href="2">u4e0au4e00u9801</a>] 0 [<a href="3">u4e0bu4e00u9801</a>/<a href="4">u6700u672bu9801</a>]</span></div>
paging.banner.first=<span class="pagelinks">[u7b2cu4e00u9801/u4e0au4e00u9801] 0 [<a href="3">u4e0bu4e00u9801</a>/<a href="4">u6700u672bu9801</a>]</span></div>
paging.banner.last=<span class="pagelinks">[<a href="1">u7b2cu4e00u9801</a>/<a href="2">u4e0au4e00u9801</a>] 0 [u4e0bu4e00u9801/u6700u672bu9801]</span></div>
paging.banner.onepage=<span class="pagelinks">[u7b2cu4e00u9801/u4e0au4e00u9801] 0 [u4e0bu4e00u9801/u6700u672bu9801]</span></div>
paging.banner.page.selected=<strong>0</strong>
paging.banner.page.link=<a href="1" title="u524du5f80u7b2c 0 u9801">0</a>
paging.banner.page.separator=,
# external sort and pagination
pagination.sort.param=sort
pagination.sortdirection.param=dir
pagination.pagenumber.param=page
pagination.searchid.param=searchid
pagination.sort.asc.value=asc
pagination.sort.desc.value=desc
pagination.sort.skippagenumber=true
# unused
save.excel.banner=<a href="0" rel="external">save (1 bytes)</a>
save.excel.filename=export.xls
jsp
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="aps.wap.util.Constants" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
java
add a comment |
my Struts2 project use displaytag ,I want to have a i18n site ,
so I already use language(en,cn,jp) put in the HttpSession,
now I only have a displaytag.properties ,so I may create displaytag_en.properties,displaytag_cn.properties,displaytag_jp.properties
,and I don't known how to read diffrent properties by session.get("language"),thanks.
displaytag.properties
ufeffbasic.empty.showtable=false
basic.show.header=true
# page | list
sort.amount=page
export.amount=list
export.decorated=true
paging.banner.group_size=8
paging.banner.placement=bottom
css.tr.even=even
css.tr.odd=odd
css.th.sorted=sorted
css.th.ascending=order1
css.th.descending=order2
css.table=
css.th.sortable=sortable
# factory classes for extensions
factory.requestHelper=org.displaytag.util.DefaultRequestHelperFactory
# factory class for decorators
factory.decorator=org.displaytag.decorator.DefaultDecoratorFactory
# locale provider (Jstl provider by default)
#locale.provider=org.displaytag.localization.I18nJstlAdapter
# locale provider (Jstl provider by default)
locale.provider=gov.nia.aps.adm.util.I18nStruts2Adapter
# locale.resolver (nothing by default, simply use locale from request)
locale.resolver=gov.nia.aps.adm.util.I18nStruts2Adapter
export.types=excel
export.csv.class=org.displaytag.export.CsvView
export.excel.class=org.displaytag.export.excel.DefaultHssfExportView
export.xml.class=org.displaytag.export.XmlView
export.pdf.class=org.displaytag.export.PdfView
export.csv=false
export.csv.label=<span class="export csv">CSV </span>
export.csv.include_header=true
export.csv.filename=output.csv
export.excel=true
export.excel.label=<span class="export excel">Excel </span>
export.excel.include_header=true
export.excel.filename=output.xls
export.xml=false
export.xml.label=<span class="export xml>XML </span>
export.xml.filename=
export.pdf=false
export.pdf.label=<span class="export pdf">PDF </span>
export.pdf.include_header=true
export.pdf.filename=
export.rtf=false
export.rtf.label=<span class="export rtf">RTF </span>
export.rtf.include_header=true
export.rtf.filename=
# messages
basic.msg.empty_list=u76eeu524du6c92u6709u8cc7u6599u3002
basic.msg.empty_list_row=<tr class="empty"><td colspan="0">u76eeu524du6c92u6709u8cc7u6599u3002</td></tr>
error.msg.invalid_page=invalid page
export.banner=<div class="exportlinks">u532fu51fa : 0</div>
export.banner.sepchar= |
paging.banner.item_name=u7b46
paging.banner.items_name=u7b46
paging.banner.no_items_found=<div align="right"><span class="pagebanner">u6c92u6709u8cc7u6599u3002</span>
paging.banner.one_item_found=<div align="right"><span class="pagebanner">u53eau6709 1 0u8cc7u6599u3002</span>
paging.banner.all_items_found=<div align="right"><span class="pagebanner">u5171u6709 0 1u8cc7u6599, u76eeu524du986fu793a 0 u7b46u3002</span>
paging.banner.some_items_found=<div align="right"><span class="pagebanner">u5171u6709 0 1u8cc7u6599, u76eeu524du986fu793au7b2c 2 u7b46u81f3u7b2c 3 u7b46u8cc7u6599u3002</span>
paging.banner.full=<span class="pagelinks">[<a href="1">u7b2cu4e00u9801</a>/<a href="2">u4e0au4e00u9801</a>] 0 [<a href="3">u4e0bu4e00u9801</a>/<a href="4">u6700u672bu9801</a>]</span></div>
paging.banner.first=<span class="pagelinks">[u7b2cu4e00u9801/u4e0au4e00u9801] 0 [<a href="3">u4e0bu4e00u9801</a>/<a href="4">u6700u672bu9801</a>]</span></div>
paging.banner.last=<span class="pagelinks">[<a href="1">u7b2cu4e00u9801</a>/<a href="2">u4e0au4e00u9801</a>] 0 [u4e0bu4e00u9801/u6700u672bu9801]</span></div>
paging.banner.onepage=<span class="pagelinks">[u7b2cu4e00u9801/u4e0au4e00u9801] 0 [u4e0bu4e00u9801/u6700u672bu9801]</span></div>
paging.banner.page.selected=<strong>0</strong>
paging.banner.page.link=<a href="1" title="u524du5f80u7b2c 0 u9801">0</a>
paging.banner.page.separator=,
# external sort and pagination
pagination.sort.param=sort
pagination.sortdirection.param=dir
pagination.pagenumber.param=page
pagination.searchid.param=searchid
pagination.sort.asc.value=asc
pagination.sort.desc.value=desc
pagination.sort.skippagenumber=true
# unused
save.excel.banner=<a href="0" rel="external">save (1 bytes)</a>
save.excel.filename=export.xls
jsp
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="aps.wap.util.Constants" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
java
add a comment |
my Struts2 project use displaytag ,I want to have a i18n site ,
so I already use language(en,cn,jp) put in the HttpSession,
now I only have a displaytag.properties ,so I may create displaytag_en.properties,displaytag_cn.properties,displaytag_jp.properties
,and I don't known how to read diffrent properties by session.get("language"),thanks.
displaytag.properties
ufeffbasic.empty.showtable=false
basic.show.header=true
# page | list
sort.amount=page
export.amount=list
export.decorated=true
paging.banner.group_size=8
paging.banner.placement=bottom
css.tr.even=even
css.tr.odd=odd
css.th.sorted=sorted
css.th.ascending=order1
css.th.descending=order2
css.table=
css.th.sortable=sortable
# factory classes for extensions
factory.requestHelper=org.displaytag.util.DefaultRequestHelperFactory
# factory class for decorators
factory.decorator=org.displaytag.decorator.DefaultDecoratorFactory
# locale provider (Jstl provider by default)
#locale.provider=org.displaytag.localization.I18nJstlAdapter
# locale provider (Jstl provider by default)
locale.provider=gov.nia.aps.adm.util.I18nStruts2Adapter
# locale.resolver (nothing by default, simply use locale from request)
locale.resolver=gov.nia.aps.adm.util.I18nStruts2Adapter
export.types=excel
export.csv.class=org.displaytag.export.CsvView
export.excel.class=org.displaytag.export.excel.DefaultHssfExportView
export.xml.class=org.displaytag.export.XmlView
export.pdf.class=org.displaytag.export.PdfView
export.csv=false
export.csv.label=<span class="export csv">CSV </span>
export.csv.include_header=true
export.csv.filename=output.csv
export.excel=true
export.excel.label=<span class="export excel">Excel </span>
export.excel.include_header=true
export.excel.filename=output.xls
export.xml=false
export.xml.label=<span class="export xml>XML </span>
export.xml.filename=
export.pdf=false
export.pdf.label=<span class="export pdf">PDF </span>
export.pdf.include_header=true
export.pdf.filename=
export.rtf=false
export.rtf.label=<span class="export rtf">RTF </span>
export.rtf.include_header=true
export.rtf.filename=
# messages
basic.msg.empty_list=u76eeu524du6c92u6709u8cc7u6599u3002
basic.msg.empty_list_row=<tr class="empty"><td colspan="0">u76eeu524du6c92u6709u8cc7u6599u3002</td></tr>
error.msg.invalid_page=invalid page
export.banner=<div class="exportlinks">u532fu51fa : 0</div>
export.banner.sepchar= |
paging.banner.item_name=u7b46
paging.banner.items_name=u7b46
paging.banner.no_items_found=<div align="right"><span class="pagebanner">u6c92u6709u8cc7u6599u3002</span>
paging.banner.one_item_found=<div align="right"><span class="pagebanner">u53eau6709 1 0u8cc7u6599u3002</span>
paging.banner.all_items_found=<div align="right"><span class="pagebanner">u5171u6709 0 1u8cc7u6599, u76eeu524du986fu793a 0 u7b46u3002</span>
paging.banner.some_items_found=<div align="right"><span class="pagebanner">u5171u6709 0 1u8cc7u6599, u76eeu524du986fu793au7b2c 2 u7b46u81f3u7b2c 3 u7b46u8cc7u6599u3002</span>
paging.banner.full=<span class="pagelinks">[<a href="1">u7b2cu4e00u9801</a>/<a href="2">u4e0au4e00u9801</a>] 0 [<a href="3">u4e0bu4e00u9801</a>/<a href="4">u6700u672bu9801</a>]</span></div>
paging.banner.first=<span class="pagelinks">[u7b2cu4e00u9801/u4e0au4e00u9801] 0 [<a href="3">u4e0bu4e00u9801</a>/<a href="4">u6700u672bu9801</a>]</span></div>
paging.banner.last=<span class="pagelinks">[<a href="1">u7b2cu4e00u9801</a>/<a href="2">u4e0au4e00u9801</a>] 0 [u4e0bu4e00u9801/u6700u672bu9801]</span></div>
paging.banner.onepage=<span class="pagelinks">[u7b2cu4e00u9801/u4e0au4e00u9801] 0 [u4e0bu4e00u9801/u6700u672bu9801]</span></div>
paging.banner.page.selected=<strong>0</strong>
paging.banner.page.link=<a href="1" title="u524du5f80u7b2c 0 u9801">0</a>
paging.banner.page.separator=,
# external sort and pagination
pagination.sort.param=sort
pagination.sortdirection.param=dir
pagination.pagenumber.param=page
pagination.searchid.param=searchid
pagination.sort.asc.value=asc
pagination.sort.desc.value=desc
pagination.sort.skippagenumber=true
# unused
save.excel.banner=<a href="0" rel="external">save (1 bytes)</a>
save.excel.filename=export.xls
jsp
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="aps.wap.util.Constants" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
java
my Struts2 project use displaytag ,I want to have a i18n site ,
so I already use language(en,cn,jp) put in the HttpSession,
now I only have a displaytag.properties ,so I may create displaytag_en.properties,displaytag_cn.properties,displaytag_jp.properties
,and I don't known how to read diffrent properties by session.get("language"),thanks.
displaytag.properties
ufeffbasic.empty.showtable=false
basic.show.header=true
# page | list
sort.amount=page
export.amount=list
export.decorated=true
paging.banner.group_size=8
paging.banner.placement=bottom
css.tr.even=even
css.tr.odd=odd
css.th.sorted=sorted
css.th.ascending=order1
css.th.descending=order2
css.table=
css.th.sortable=sortable
# factory classes for extensions
factory.requestHelper=org.displaytag.util.DefaultRequestHelperFactory
# factory class for decorators
factory.decorator=org.displaytag.decorator.DefaultDecoratorFactory
# locale provider (Jstl provider by default)
#locale.provider=org.displaytag.localization.I18nJstlAdapter
# locale provider (Jstl provider by default)
locale.provider=gov.nia.aps.adm.util.I18nStruts2Adapter
# locale.resolver (nothing by default, simply use locale from request)
locale.resolver=gov.nia.aps.adm.util.I18nStruts2Adapter
export.types=excel
export.csv.class=org.displaytag.export.CsvView
export.excel.class=org.displaytag.export.excel.DefaultHssfExportView
export.xml.class=org.displaytag.export.XmlView
export.pdf.class=org.displaytag.export.PdfView
export.csv=false
export.csv.label=<span class="export csv">CSV </span>
export.csv.include_header=true
export.csv.filename=output.csv
export.excel=true
export.excel.label=<span class="export excel">Excel </span>
export.excel.include_header=true
export.excel.filename=output.xls
export.xml=false
export.xml.label=<span class="export xml>XML </span>
export.xml.filename=
export.pdf=false
export.pdf.label=<span class="export pdf">PDF </span>
export.pdf.include_header=true
export.pdf.filename=
export.rtf=false
export.rtf.label=<span class="export rtf">RTF </span>
export.rtf.include_header=true
export.rtf.filename=
# messages
basic.msg.empty_list=u76eeu524du6c92u6709u8cc7u6599u3002
basic.msg.empty_list_row=<tr class="empty"><td colspan="0">u76eeu524du6c92u6709u8cc7u6599u3002</td></tr>
error.msg.invalid_page=invalid page
export.banner=<div class="exportlinks">u532fu51fa : 0</div>
export.banner.sepchar= |
paging.banner.item_name=u7b46
paging.banner.items_name=u7b46
paging.banner.no_items_found=<div align="right"><span class="pagebanner">u6c92u6709u8cc7u6599u3002</span>
paging.banner.one_item_found=<div align="right"><span class="pagebanner">u53eau6709 1 0u8cc7u6599u3002</span>
paging.banner.all_items_found=<div align="right"><span class="pagebanner">u5171u6709 0 1u8cc7u6599, u76eeu524du986fu793a 0 u7b46u3002</span>
paging.banner.some_items_found=<div align="right"><span class="pagebanner">u5171u6709 0 1u8cc7u6599, u76eeu524du986fu793au7b2c 2 u7b46u81f3u7b2c 3 u7b46u8cc7u6599u3002</span>
paging.banner.full=<span class="pagelinks">[<a href="1">u7b2cu4e00u9801</a>/<a href="2">u4e0au4e00u9801</a>] 0 [<a href="3">u4e0bu4e00u9801</a>/<a href="4">u6700u672bu9801</a>]</span></div>
paging.banner.first=<span class="pagelinks">[u7b2cu4e00u9801/u4e0au4e00u9801] 0 [<a href="3">u4e0bu4e00u9801</a>/<a href="4">u6700u672bu9801</a>]</span></div>
paging.banner.last=<span class="pagelinks">[<a href="1">u7b2cu4e00u9801</a>/<a href="2">u4e0au4e00u9801</a>] 0 [u4e0bu4e00u9801/u6700u672bu9801]</span></div>
paging.banner.onepage=<span class="pagelinks">[u7b2cu4e00u9801/u4e0au4e00u9801] 0 [u4e0bu4e00u9801/u6700u672bu9801]</span></div>
paging.banner.page.selected=<strong>0</strong>
paging.banner.page.link=<a href="1" title="u524du5f80u7b2c 0 u9801">0</a>
paging.banner.page.separator=,
# external sort and pagination
pagination.sort.param=sort
pagination.sortdirection.param=dir
pagination.pagenumber.param=page
pagination.searchid.param=searchid
pagination.sort.asc.value=asc
pagination.sort.desc.value=desc
pagination.sort.skippagenumber=true
# unused
save.excel.banner=<a href="0" rel="external">save (1 bytes)</a>
save.excel.filename=export.xls
jsp
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="aps.wap.util.Constants" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
ufeffbasic.empty.showtable=false
basic.show.header=true
# page | list
sort.amount=page
export.amount=list
export.decorated=true
paging.banner.group_size=8
paging.banner.placement=bottom
css.tr.even=even
css.tr.odd=odd
css.th.sorted=sorted
css.th.ascending=order1
css.th.descending=order2
css.table=
css.th.sortable=sortable
# factory classes for extensions
factory.requestHelper=org.displaytag.util.DefaultRequestHelperFactory
# factory class for decorators
factory.decorator=org.displaytag.decorator.DefaultDecoratorFactory
# locale provider (Jstl provider by default)
#locale.provider=org.displaytag.localization.I18nJstlAdapter
# locale provider (Jstl provider by default)
locale.provider=gov.nia.aps.adm.util.I18nStruts2Adapter
# locale.resolver (nothing by default, simply use locale from request)
locale.resolver=gov.nia.aps.adm.util.I18nStruts2Adapter
export.types=excel
export.csv.class=org.displaytag.export.CsvView
export.excel.class=org.displaytag.export.excel.DefaultHssfExportView
export.xml.class=org.displaytag.export.XmlView
export.pdf.class=org.displaytag.export.PdfView
export.csv=false
export.csv.label=<span class="export csv">CSV </span>
export.csv.include_header=true
export.csv.filename=output.csv
export.excel=true
export.excel.label=<span class="export excel">Excel </span>
export.excel.include_header=true
export.excel.filename=output.xls
export.xml=false
export.xml.label=<span class="export xml>XML </span>
export.xml.filename=
export.pdf=false
export.pdf.label=<span class="export pdf">PDF </span>
export.pdf.include_header=true
export.pdf.filename=
export.rtf=false
export.rtf.label=<span class="export rtf">RTF </span>
export.rtf.include_header=true
export.rtf.filename=
# messages
basic.msg.empty_list=u76eeu524du6c92u6709u8cc7u6599u3002
basic.msg.empty_list_row=<tr class="empty"><td colspan="0">u76eeu524du6c92u6709u8cc7u6599u3002</td></tr>
error.msg.invalid_page=invalid page
export.banner=<div class="exportlinks">u532fu51fa : 0</div>
export.banner.sepchar= |
paging.banner.item_name=u7b46
paging.banner.items_name=u7b46
paging.banner.no_items_found=<div align="right"><span class="pagebanner">u6c92u6709u8cc7u6599u3002</span>
paging.banner.one_item_found=<div align="right"><span class="pagebanner">u53eau6709 1 0u8cc7u6599u3002</span>
paging.banner.all_items_found=<div align="right"><span class="pagebanner">u5171u6709 0 1u8cc7u6599, u76eeu524du986fu793a 0 u7b46u3002</span>
paging.banner.some_items_found=<div align="right"><span class="pagebanner">u5171u6709 0 1u8cc7u6599, u76eeu524du986fu793au7b2c 2 u7b46u81f3u7b2c 3 u7b46u8cc7u6599u3002</span>
paging.banner.full=<span class="pagelinks">[<a href="1">u7b2cu4e00u9801</a>/<a href="2">u4e0au4e00u9801</a>] 0 [<a href="3">u4e0bu4e00u9801</a>/<a href="4">u6700u672bu9801</a>]</span></div>
paging.banner.first=<span class="pagelinks">[u7b2cu4e00u9801/u4e0au4e00u9801] 0 [<a href="3">u4e0bu4e00u9801</a>/<a href="4">u6700u672bu9801</a>]</span></div>
paging.banner.last=<span class="pagelinks">[<a href="1">u7b2cu4e00u9801</a>/<a href="2">u4e0au4e00u9801</a>] 0 [u4e0bu4e00u9801/u6700u672bu9801]</span></div>
paging.banner.onepage=<span class="pagelinks">[u7b2cu4e00u9801/u4e0au4e00u9801] 0 [u4e0bu4e00u9801/u6700u672bu9801]</span></div>
paging.banner.page.selected=<strong>0</strong>
paging.banner.page.link=<a href="1" title="u524du5f80u7b2c 0 u9801">0</a>
paging.banner.page.separator=,
# external sort and pagination
pagination.sort.param=sort
pagination.sortdirection.param=dir
pagination.pagenumber.param=page
pagination.searchid.param=searchid
pagination.sort.asc.value=asc
pagination.sort.desc.value=desc
pagination.sort.skippagenumber=true
# unused
save.excel.banner=<a href="0" rel="external">save (1 bytes)</a>
save.excel.filename=export.xls
ufeffbasic.empty.showtable=false
basic.show.header=true
# page | list
sort.amount=page
export.amount=list
export.decorated=true
paging.banner.group_size=8
paging.banner.placement=bottom
css.tr.even=even
css.tr.odd=odd
css.th.sorted=sorted
css.th.ascending=order1
css.th.descending=order2
css.table=
css.th.sortable=sortable
# factory classes for extensions
factory.requestHelper=org.displaytag.util.DefaultRequestHelperFactory
# factory class for decorators
factory.decorator=org.displaytag.decorator.DefaultDecoratorFactory
# locale provider (Jstl provider by default)
#locale.provider=org.displaytag.localization.I18nJstlAdapter
# locale provider (Jstl provider by default)
locale.provider=gov.nia.aps.adm.util.I18nStruts2Adapter
# locale.resolver (nothing by default, simply use locale from request)
locale.resolver=gov.nia.aps.adm.util.I18nStruts2Adapter
export.types=excel
export.csv.class=org.displaytag.export.CsvView
export.excel.class=org.displaytag.export.excel.DefaultHssfExportView
export.xml.class=org.displaytag.export.XmlView
export.pdf.class=org.displaytag.export.PdfView
export.csv=false
export.csv.label=<span class="export csv">CSV </span>
export.csv.include_header=true
export.csv.filename=output.csv
export.excel=true
export.excel.label=<span class="export excel">Excel </span>
export.excel.include_header=true
export.excel.filename=output.xls
export.xml=false
export.xml.label=<span class="export xml>XML </span>
export.xml.filename=
export.pdf=false
export.pdf.label=<span class="export pdf">PDF </span>
export.pdf.include_header=true
export.pdf.filename=
export.rtf=false
export.rtf.label=<span class="export rtf">RTF </span>
export.rtf.include_header=true
export.rtf.filename=
# messages
basic.msg.empty_list=u76eeu524du6c92u6709u8cc7u6599u3002
basic.msg.empty_list_row=<tr class="empty"><td colspan="0">u76eeu524du6c92u6709u8cc7u6599u3002</td></tr>
error.msg.invalid_page=invalid page
export.banner=<div class="exportlinks">u532fu51fa : 0</div>
export.banner.sepchar= |
paging.banner.item_name=u7b46
paging.banner.items_name=u7b46
paging.banner.no_items_found=<div align="right"><span class="pagebanner">u6c92u6709u8cc7u6599u3002</span>
paging.banner.one_item_found=<div align="right"><span class="pagebanner">u53eau6709 1 0u8cc7u6599u3002</span>
paging.banner.all_items_found=<div align="right"><span class="pagebanner">u5171u6709 0 1u8cc7u6599, u76eeu524du986fu793a 0 u7b46u3002</span>
paging.banner.some_items_found=<div align="right"><span class="pagebanner">u5171u6709 0 1u8cc7u6599, u76eeu524du986fu793au7b2c 2 u7b46u81f3u7b2c 3 u7b46u8cc7u6599u3002</span>
paging.banner.full=<span class="pagelinks">[<a href="1">u7b2cu4e00u9801</a>/<a href="2">u4e0au4e00u9801</a>] 0 [<a href="3">u4e0bu4e00u9801</a>/<a href="4">u6700u672bu9801</a>]</span></div>
paging.banner.first=<span class="pagelinks">[u7b2cu4e00u9801/u4e0au4e00u9801] 0 [<a href="3">u4e0bu4e00u9801</a>/<a href="4">u6700u672bu9801</a>]</span></div>
paging.banner.last=<span class="pagelinks">[<a href="1">u7b2cu4e00u9801</a>/<a href="2">u4e0au4e00u9801</a>] 0 [u4e0bu4e00u9801/u6700u672bu9801]</span></div>
paging.banner.onepage=<span class="pagelinks">[u7b2cu4e00u9801/u4e0au4e00u9801] 0 [u4e0bu4e00u9801/u6700u672bu9801]</span></div>
paging.banner.page.selected=<strong>0</strong>
paging.banner.page.link=<a href="1" title="u524du5f80u7b2c 0 u9801">0</a>
paging.banner.page.separator=,
# external sort and pagination
pagination.sort.param=sort
pagination.sortdirection.param=dir
pagination.pagenumber.param=page
pagination.searchid.param=searchid
pagination.sort.asc.value=asc
pagination.sort.desc.value=desc
pagination.sort.skippagenumber=true
# unused
save.excel.banner=<a href="0" rel="external">save (1 bytes)</a>
save.excel.filename=export.xls
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="aps.wap.util.Constants" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="aps.wap.util.Constants" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
java
java
asked Nov 14 '18 at 3:05
Chris ChenChris Chen
12
12
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53292612%2fstruts2-use-displaytag-how-to-read-diffrent-displaytag-language-property%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53292612%2fstruts2-use-displaytag-how-to-read-diffrent-displaytag-language-property%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown