Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Forms 从Struts标签访问Spring消息源_Forms_Spring Mvc_Struts2_Textfield - Fatal编程技术网

Forms 从Struts标签访问Spring消息源

Forms 从Struts标签访问Spring消息源,forms,spring-mvc,struts2,textfield,Forms,Spring Mvc,Struts2,Textfield,我将Spring3用于IOC,Struts2用于MVC(因此我将Struts操作用于所有工作,并将Struts标记用于JSP) 我想将应用程序国际化。我使用SpringMessageSource从JDBC消息提供者读取其内容 我的所有操作都是ServletRequestAware,我使用它来获取ApplicationContext和Springbean。因此,我还有我的MessageSourcebean可用。(当然还有MessageSourceBundle中的ResourceBundle) 我希

我将Spring3用于IOC,Struts2用于MVC(因此我将Struts操作用于所有工作,并将Struts标记用于JSP)

我想将应用程序国际化。我使用SpringMessageSource从JDBC消息提供者读取其内容

我的所有操作都是ServletRequestAware,我使用它来获取ApplicationContext和Springbean。因此,我还有我的MessageSourcebean可用。(当然还有MessageSourceBundle中的ResourceBundle)

我希望能够在struts标记中使用ResourceBundle。
的示例说明:

在本例中,呈现“用户”属性的文本控件。标签还通过key属性从ResourceBundle中>检索。

不知道那是什么意思。在我看来,你需要一个“bundle”和一个“key”来从bundle中获取消息。那么,在上面的示例中,“用户”是“捆绑包”还是“密钥”? 我应该如何通过操作的getter或请求参数将ResourceBundle转发到jsp?

这意味着为这个特定组件设置键(名称、值、标签)