{"id":37552,"date":"2015-02-26T22:00:21","date_gmt":"2015-02-26T20:00:21","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/?p=37552"},"modified":"2015-02-26T08:34:40","modified_gmt":"2015-02-26T06:34:40","slug":"fetching-list-of-message-codes-from-message-properties","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2015\/02\/fetching-list-of-message-codes-from-message-properties.html","title":{"rendered":"Fetching List of message codes from message.properties"},"content":{"rendered":"<p>Normally messages from message properties are fetched via, key i.e. message code, What if we want to select more than one message property, like a list. To get a list of select message codes from message.properties, we need to customize messageSource bean. To do that, lets create a class &#8216;CustomisedPluginAwareResourceBundleMessageSource&#8217; which should extend class &#8216;PluginAwareResourceBundleMessageSource&#8217;.<\/p>\n<p>To fetch all properties we will use getMergedProperties().<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<\/p>\n<pre class=\"brush:java\">import org.codehaus.groovy.grails.context.support.PluginAwareResourceBundleMessageSource\r\n\r\nclass CustomisedPluginAwareResourceBundleMessageSource extends PluginAwareResourceBundleMessageSource {\r\n    List listMessageCodes(Locale locale, String lookupMessageCode) {\r\n        Properties properties = getMergedProperties(locale).properties\r\n        List listOfCodes = []\r\n        properties.each {\r\n            if (it.key.toString().matches(\/^[\\w.]*${lookupMessageCode}[.\\w]*$\/))\r\n                listOfCodes.add(it.key)\r\n        }\r\n        return listOfCodes\r\n    }\r\n}\r\n<\/pre>\n<p>Here, &#8216;listMessageCodes()&#8217; takes two parameters, first is the &#8216;locale&#8217; we are looking in and second is  &#8216;string&#8217; which we are searching for ; and it returns the list of codes which contains that string.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p>Next we need to do is re-define &#8216;messageSource&#8217; bean in the resources file: <\/p>\n<pre class=\"brush:java\">import com.ig.demoApp.CustomisedPluginAwareResourceBundleMessageSource\r\n\r\nbeans = {\r\n    messageSource(CustomisedPluginAwareResourceBundleMessageSource)  {\r\n        basenames = \"WEB-INF\/grails-app\/i18n\/messages\"\r\n    }\r\n}\r\n<\/pre>\n<p>That&#8217;s it!<\/p>\n<p>All we need to do is call the method &#8216;listMessageCodes()&#8217;. Here is a small example. <\/p>\n<p>Mentioned below is a sample of message codes, in message.properties:<\/p>\n<pre class=\"brush:java\">fruit.orange.label=Orange\r\nfruit.black.label=Black Grape\r\nfruit.red.label=Red Apple\r\nfruit.green.label=Green Apple\r\n\r\nsquare.black.label=Black Square\r\nsquare.yellow.label=yellow Square\r\nsquare.red.label=Pink Square\r\n\r\ncircle.violet.label=Violet Circle\r\ncircle.magenta.label=Magenta Circle\r\ncircle.olive.label=Olive Circle\r\n<\/pre>\n<p>and a controller like: <\/p>\n<pre class=\"brush:java\">package demoapp\r\n\r\nclass DemoController {\r\n\r\n    def messageSource\r\n\r\n    def show() {\r\n        [fruits: messageSource.listMessageCodes(request.locale, \"fruit\"),\r\n        squares: messageSource.listMessageCodes(request.locale, \"square\"),\r\n        circles: messageSource.listMessageCodes(request.locale, \"circle\"),\r\n        blackColorItems:messageSource.listMessageCodes(request.locale, \"black\"),\r\n        redColorItems:messageSource.listMessageCodes(request.locale, \"red\")]\r\n    }\r\n}\r\n<\/pre>\n<p>a gsp:<\/p>\n<pre class=\"brush:java\">&lt;g:form&gt;\r\n    &lt;p&gt;Available Fruits&lt;\/p&gt;\r\n    &lt;g:each in=\"${fruits}\" var=\"fruit\"&gt;\r\n        &lt;span&gt;\r\n            &lt;input type=\"radio\" name=\"fruit\"&gt;\r\n            &lt;label&gt;&lt;g:message code=\"${fruit}\"\/&gt;&lt;\/label&gt;\r\n        &lt;\/span&gt;\r\n    &lt;\/g:each&gt;\r\n\r\n    &lt;p&gt;Available Squares&lt;\/p&gt;\r\n    &lt;g:each in=\"${squares}\" var=\"square\"&gt;\r\n        &lt;span&gt;\r\n            &lt;input type=\"radio\" name=\"square\"&gt;\r\n            &lt;label&gt;&lt;g:message code=\"${square}\"\/&gt;&lt;\/label&gt;\r\n        &lt;\/span&gt;\r\n    &lt;\/g:each&gt;\r\n\r\n    &lt;p&gt;Available Circles&lt;\/p&gt;\r\n    &lt;g:each in=\"${circles}\" var=\"circle\"&gt;\r\n        &lt;span&gt;\r\n            &lt;input type=\"radio\" name=\"circle\"&gt;\r\n            &lt;label&gt;&lt;g:message code=\"${circle}\"\/&gt;&lt;\/label&gt;\r\n        &lt;\/span&gt;\r\n    &lt;\/g:each&gt;\r\n\r\n    &lt;p&gt;Available Black Color Items&lt;\/p&gt;\r\n    &lt;g:each in=\"${blackColorItems}\" var=\"blackColorItem\"&gt;\r\n        &lt;span&gt;\r\n            &lt;input type=\"radio\" name=\"blackColorItem\"&gt;\r\n            &lt;label&gt;&lt;g:message code=\"${blackColorItem}\"\/&gt;&lt;\/label&gt;\r\n        &lt;\/span&gt;\r\n    &lt;\/g:each&gt;\r\n\r\n    &lt;p&gt;Available Red Color Items&lt;\/p&gt;\r\n    &lt;g:each in=\"${redColorItems}\" var=\"redColorItem\"&gt;\r\n        &lt;span&gt;\r\n            &lt;input type=\"radio\" name=\"redColorItem\"&gt;\r\n            &lt;label&gt;&lt;g:message code=\"${redColorItem}\"\/&gt;&lt;\/label&gt;\r\n        &lt;\/span&gt;\r\n    &lt;\/g:each&gt;\r\n\r\n&lt;\/g:form&gt;\r\n<\/pre>\n<p>That&#8217;s it :)<\/p>\n<ul>\n<li>You can also find the demo <a href=\"https:\/\/github.com\/neha-gupta11\/filtering-i18N-message-codes-properties\" title=\"project\">here<\/a>.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Normally messages from message properties are fetched via, key i.e. message code, What if we want to select more than one message property, like a list. To get a list of select message codes from message.properties, we need to customize messageSource bean. To do that, lets create a class &#8216;CustomisedPluginAwareResourceBundleMessageSource&#8217; which should extend class &#8216;PluginAwareResourceBundleMessageSource&#8217;. &hellip;<\/p>\n","protected":false},"author":867,"featured_media":130,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[192],"class_list":["post-37552","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-groovy","tag-grails"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Fetching List of message codes from message.properties - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"Normally messages from message properties are fetched via, key i.e. message code, What if we want to select more than one message property, like a list.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2015\/02\/fetching-list-of-message-codes-from-message-properties.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fetching List of message codes from message.properties - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"Normally messages from message properties are fetched via, key i.e. message code, What if we want to select more than one message property, like a list.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2015\/02\/fetching-list-of-message-codes-from-message-properties.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2015-02-26T20:00:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/grails-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Neha Gupta\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Neha Gupta\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/02\\\/fetching-list-of-message-codes-from-message-properties.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/02\\\/fetching-list-of-message-codes-from-message-properties.html\"},\"author\":{\"name\":\"Neha Gupta\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/7d41edee9aa4bf032333d470ed7b90c5\"},\"headline\":\"Fetching List of message codes from message.properties\",\"datePublished\":\"2015-02-26T20:00:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/02\\\/fetching-list-of-message-codes-from-message-properties.html\"},\"wordCount\":167,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/02\\\/fetching-list-of-message-codes-from-message-properties.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/grails-logo.jpg\",\"keywords\":[\"Grails\"],\"articleSection\":[\"Groovy\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/02\\\/fetching-list-of-message-codes-from-message-properties.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/02\\\/fetching-list-of-message-codes-from-message-properties.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/02\\\/fetching-list-of-message-codes-from-message-properties.html\",\"name\":\"Fetching List of message codes from message.properties - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/02\\\/fetching-list-of-message-codes-from-message-properties.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/02\\\/fetching-list-of-message-codes-from-message-properties.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/grails-logo.jpg\",\"datePublished\":\"2015-02-26T20:00:21+00:00\",\"description\":\"Normally messages from message properties are fetched via, key i.e. message code, What if we want to select more than one message property, like a list.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/02\\\/fetching-list-of-message-codes-from-message-properties.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/02\\\/fetching-list-of-message-codes-from-message-properties.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/02\\\/fetching-list-of-message-codes-from-message-properties.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/grails-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/grails-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2015\\\/02\\\/fetching-list-of-message-codes-from-message-properties.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JVM Languages\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/jvm-languages\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Groovy\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/jvm-languages\\\/groovy\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Fetching List of message codes from message.properties\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/7d41edee9aa4bf032333d470ed7b90c5\",\"name\":\"Neha Gupta\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a14fd5f9979fd5d8e3de87e89b59b2b233ac8e0851b1f5bd242c19c508895c65?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a14fd5f9979fd5d8e3de87e89b59b2b233ac8e0851b1f5bd242c19c508895c65?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a14fd5f9979fd5d8e3de87e89b59b2b233ac8e0851b1f5bd242c19c508895c65?s=96&d=mm&r=g\",\"caption\":\"Neha Gupta\"},\"description\":\"Neha has more than 3 years of experience working technologies like J2EE, Core Java ,Groovy and Grails. She is highly ambitious person, who believes in striving hard to achieve something great in life which alligns well with her philosphy of \u201chard work conquers all\\\". She has an impetuous for her future goals and has an optimistic outlook towards life. You can check her more blogs here.\",\"sameAs\":[\"http:\\\/\\\/www.intelligrape.com\\\/\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/neha-gupta\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fetching List of message codes from message.properties - Java Code Geeks","description":"Normally messages from message properties are fetched via, key i.e. message code, What if we want to select more than one message property, like a list.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2015\/02\/fetching-list-of-message-codes-from-message-properties.html","og_locale":"en_US","og_type":"article","og_title":"Fetching List of message codes from message.properties - Java Code Geeks","og_description":"Normally messages from message properties are fetched via, key i.e. message code, What if we want to select more than one message property, like a list.","og_url":"https:\/\/www.javacodegeeks.com\/2015\/02\/fetching-list-of-message-codes-from-message-properties.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2015-02-26T20:00:21+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/grails-logo.jpg","type":"image\/jpeg"}],"author":"Neha Gupta","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Neha Gupta","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2015\/02\/fetching-list-of-message-codes-from-message-properties.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2015\/02\/fetching-list-of-message-codes-from-message-properties.html"},"author":{"name":"Neha Gupta","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/7d41edee9aa4bf032333d470ed7b90c5"},"headline":"Fetching List of message codes from message.properties","datePublished":"2015-02-26T20:00:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2015\/02\/fetching-list-of-message-codes-from-message-properties.html"},"wordCount":167,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2015\/02\/fetching-list-of-message-codes-from-message-properties.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/grails-logo.jpg","keywords":["Grails"],"articleSection":["Groovy"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2015\/02\/fetching-list-of-message-codes-from-message-properties.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2015\/02\/fetching-list-of-message-codes-from-message-properties.html","url":"https:\/\/www.javacodegeeks.com\/2015\/02\/fetching-list-of-message-codes-from-message-properties.html","name":"Fetching List of message codes from message.properties - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2015\/02\/fetching-list-of-message-codes-from-message-properties.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2015\/02\/fetching-list-of-message-codes-from-message-properties.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/grails-logo.jpg","datePublished":"2015-02-26T20:00:21+00:00","description":"Normally messages from message properties are fetched via, key i.e. message code, What if we want to select more than one message property, like a list.","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2015\/02\/fetching-list-of-message-codes-from-message-properties.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2015\/02\/fetching-list-of-message-codes-from-message-properties.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2015\/02\/fetching-list-of-message-codes-from-message-properties.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/grails-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/grails-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2015\/02\/fetching-list-of-message-codes-from-message-properties.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"JVM Languages","item":"https:\/\/www.javacodegeeks.com\/category\/jvm-languages"},{"@type":"ListItem","position":3,"name":"Groovy","item":"https:\/\/www.javacodegeeks.com\/category\/jvm-languages\/groovy"},{"@type":"ListItem","position":4,"name":"Fetching List of message codes from message.properties"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/7d41edee9aa4bf032333d470ed7b90c5","name":"Neha Gupta","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/a14fd5f9979fd5d8e3de87e89b59b2b233ac8e0851b1f5bd242c19c508895c65?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a14fd5f9979fd5d8e3de87e89b59b2b233ac8e0851b1f5bd242c19c508895c65?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a14fd5f9979fd5d8e3de87e89b59b2b233ac8e0851b1f5bd242c19c508895c65?s=96&d=mm&r=g","caption":"Neha Gupta"},"description":"Neha has more than 3 years of experience working technologies like J2EE, Core Java ,Groovy and Grails. She is highly ambitious person, who believes in striving hard to achieve something great in life which alligns well with her philosphy of \u201chard work conquers all\". She has an impetuous for her future goals and has an optimistic outlook towards life. You can check her more blogs here.","sameAs":["http:\/\/www.intelligrape.com\/"],"url":"https:\/\/www.javacodegeeks.com\/author\/neha-gupta"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/37552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/867"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=37552"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/37552\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/130"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=37552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=37552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=37552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}