By: kundan singh user 16 Aug 2017 at 5:32 a.m. CDT

6 Responses
kundan singh gravatar
Hi All, How we can change resource bundle property or add new property , for custom login.xhtml in case login.xhtml in /opt/gluu/jetty/oxauth/custom/pages. I tried putting to resource bundle in custom directory but did not worked . cp /opt/jetty-9.3/temp/jetty-localhost-8081-oxauth.war-_oxauth-any-4850993885170217384.dir/webapp/WEB-INF/classes/messages_en.properties /opt/gluu/jetty/oxauth/custom/pages/WEB-INF/classes Thanks, Kundan

By Aliaksandr Samuseu staff 16 Aug 2017 at 10:16 a.m. CDT

Aliaksandr Samuseu gravatar
Hi, kundan. Please check [this article](https://gluu.org/docs/ce/3.0.2/operation/custom-loginpage/) first.

By William Lowe user 16 Aug 2017 at 12:52 p.m. CDT

William Lowe gravatar
I updated the link in Alex's comment.. the correct link is [https://gluu.org/docs/ce/3.0.2/operation/custom-loginpage/](https://gluu.org/docs/ce/3.0.2/operation/custom-loginpage/). Thanks, Will

By Richard Abrahamson Account Admin 25 Aug 2017 at 1:45 p.m. CDT

Richard Abrahamson gravatar
Hi, I'm facing the same challenge as the original post - I've read through the linked document and while it does describe modifying css, xhtml, etc.. it does not address modifying the messages.properties files, if you can add to it, modify it, etc... Can the messages.properties file be customized outside of the deployed .war file? Thanks!

By Aliaksandr Samuseu staff 25 Aug 2017 at 2:33 p.m. CDT

Aliaksandr Samuseu gravatar
Hi, Richard. You should be able to, for example by putting a file at `/opt/gluu/jetty/oxauth/custom/pages/WEB-INF/classes/messages_en.properties` path which overrides the default one.

By Richard Abrahamson Account Admin 25 Aug 2017 at 3:14 p.m. CDT

Richard Abrahamson gravatar
Thank you for your response, I have tried what you've recommended and have made changes to existing attributes as well as defining new ones in the file override however neither are reflected when loading pages referencing those items: ls -l /opt/gluu/jetty/oxauth/custom/pages/WEB-INF/classes/messages_en.properties -rw-r--r-- 1 jetty jetty 7406 Aug 25 19:56 /opt/gluu/jetty/oxauth/custom/pages/WEB-INF/classes/messages_en.properties Is there something more that needs to be done? I'm on gluu 3.0.2 and have also done a start/stop on oxauth and identity with no success. Thanks,

By neha malhotra user 19 Dec 2017 at 8:38 p.m. CST

neha malhotra gravatar
Hi, I also tried overriding message.properties by copying property file to /opt/gluu/jetty/oxauth/custom/pages/WEB-INF/classes/messages_en.properties , but this is not getting picked up. What other updates we need to do in order to override message..properties.