首先在web.xml中作如下配置: <filter> <filter-name>struts2</filter-name> <!-- <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> --> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> </filter> struts.xml中配置如下: <constant name="struts.devMode" value="true" /> <constant name="struts.i18n.encoding" value="utf-8"></constant> 注意,如果你的eclipse中设置的字符集为utf-8,则struts.xml中也设为utf-8。 这样就可以从jsp文件传中文字符到java文件中显示了。