DisplayTag is displayed as Chinese (read from the resource file)

xiaoxiao2021-03-06  41

First, a resource file must be established. Place it under Web-INF / CLASSES, named **_ zh_cn.properties, configure struts-config.xml. Add configuration: Third, using the FMT tab on the JSP page, bind the resource file: Fourth, specify titleKey in displaytag, for example: can display (note coding, otherwise there will be garbled, resources File encoding should be the same as JSP page encoding)

转载请注明原文地址:https://www.9cbs.com/read-77443.html

New Post(0)