Search code examples
propertiesliferayresourcebundleliferay-6

How to call another property file?


I'm having two property file called sample.properties and sample1.properties in src folder at same level.

It is having some information like,

A1 = please call {sample1:name}

Here, sample1 -> property file name name -> key defined in sample1 like [name = abc]

I want to call sample1 property file , get value of name from that file and store it into the A1 key in sample.properties.

Is there any way to include and fetch value from other property file?

Thanks in Advance.

Regards, Mayur Patel


Solution

  • I'm afraid I don't think you can do this. My understanding is that you can only provide one properties file per portlet.

    What are you trying to achieve with this approach? Why can't you just use one properties file?