此内容没有您所选择的语言版本。
13.11.2. Map File Extensions to Languages in the web.xml File
Summary
			Some clients, like browsers, cannot use the Accept and Accept-Language headers to negotiate the representation's media type or language. RESTEasy can map file name suffixes to media types and languages to deal with this issue. Follow these steps to map languages to file extensions, in the web.xml file.
		
Procedure 13.5. Map File Extensions to Languages in the web.xml File
- Open theweb.xmlfile for the application in a text editor.
- Add the context-paramresteasy.language.mappingsto the file, inside theweb-apptags:<context-param> <param-name>resteasy.language.mappings</param-name> </context-param><context-param> <param-name>resteasy.language.mappings</param-name> </context-param>Copy to Clipboard Copied! Toggle word wrap Toggle overflow 
- Configure the parameter values. The mappings form a comma delimited list. Each mapping is delimited by a::Example 13.14. Example Mapping <context-param> <param-name>resteasy.language.mappings</param-name> <param-value> en : en-US, es : es, fr : fr</param-name> </context-param><context-param> <param-name>resteasy.language.mappings</param-name> <param-value> en : en-US, es : es, fr : fr</param-name> </context-param>Copy to Clipboard Copied! Toggle word wrap Toggle overflow