Skip to content

Instantly share code, notes, and snippets.

@abickford
abickford / gist:5831317
Created June 21, 2013 13:53
Evaluating Java System Properties in JSP
Spring context XML:
<!-- expose specific properties to application -->
<bean id="applicationProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="singleton" value="true" />
<property name="properties">
<props>
<prop key="frontleaf.enabled">${frontleaf.enabled}</prop>
<prop key="frontleaf.streamname">${frontleaf.streamname}</prop>
</props>
</property>
@abickford
abickford / dijit-bootstrap.js
Created August 20, 2012 20:04
Dijit Templated Widget Bootstrap
define("my/WidgetName",
[ "dojo/_base/declare",
"dijit/_WidgetBase",
"dijit/_TemplatedMixin",
"dijit/_WidgetsInTemplateMixin",
"dojo/text!./templates/WidgetTemplate.html"], function(declare, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, template) {
return declare("my.WidgetName", [_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], {
templateString: template,