Using getText() for the getting property in Struts 2

后端 未结 2 1588
北荒
北荒 2021-01-03 10:25

I am working on the Struts2 framework with JSP.

In my samplePrj.properties file, in that

com.samplePrj.Successmessage = Saved Successful         


        
2条回答
  •  梦谈多话
    2021-01-03 10:58

    Use the text tag

    
        
    
    

    it will load the bundle using i18n tag from samplePrj.properties and print the value from key com.samplePrj.Successmessage in it.

    or you can use it with getText() but your action class should extend ActionSupport.

    
    

提交回复
热议问题