How make struts2 see my properties file

后端 未结 3 358
鱼传尺愫
鱼传尺愫 2021-01-13 01:17

Hi I have this project structure

\"enter

and in my index.jsp I ha

3条回答
  •  走了就别回头了
    2021-01-13 02:03

    You have done all things OK but you have not kept the property file name as of the Action name . The name should be Login.property.

    Also please make sure that the property file must be in the same package as of the Action against it is being created.

    Please refer the following link for details:

    http://struts.apache.org/release/2.2.x/docs/message-resource-files.html

    Thanks, Shahid Saeed Khan

提交回复
热议问题