{"id":4652,"date":"2014-03-30T14:19:14","date_gmt":"2014-03-30T14:19:14","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/a-groovy-web-console-in-a-java-webapp-collection-of-common-programming-errors\/"},"modified":"2014-03-30T14:19:14","modified_gmt":"2014-03-30T14:19:14","slug":"a-groovy-web-console-in-a-java-webapp-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/a-groovy-web-console-in-a-java-webapp-collection-of-common-programming-errors\/","title":{"rendered":"A Groovy Web Console in a Java webapp?-Collection of common programming errors"},"content":{"rendered":"<p>The Grails web framework has the Grails console which is basically a Groovy console that has access to your web app&#8217;s state. More specifically, in the Grails console there are a bunch of predefined variables which you can use to access\/change the web app at runtime. For example <code>ctx<\/code> is a predefined variable that provides access to the application&#8217;s Spring beans (AKA ApplicationContext).<\/p>\n<p>Normally the grails console runs as a desktop app, but there&#8217;s a plugin available that will let you include it as part of the application itself, and therefore use it via a web browser.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Grails web framework has the Grails console which is basically a Groovy console that has access to your web app&#8217;s state. More specifically, in the Grails console there are a bunch of predefined variables which you can use to access\/change the web app at runtime. For example ctx is a predefined variable that provides [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4652","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4652","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4652"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4652\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}