Struts 2 / codebehind / SiteMesh : how do I auto-wire static resources?

2007-09-27 Thread james_carbon5
I'm working on a project that is using struts 2, codebehind, and SiteMesh. We're using Spring for injection. We've got it wired up so that each action has a template that is "magically" discovered, such that if I request an action "../foo!bar.action" the template "foo-bar.ftl" is used to render th

Re: Can anyone explain the leading "r" in OGNL list syntax?

2007-08-29 Thread james_carbon5
: 'Regular', 'Decaf': > 'Decaf'}}" > > musachy > > On 8/29/07, james_carbon5 <[EMAIL PROTECTED]> wrote: >> >> Thanks for the response Dale. The "r" isn't a typo. If I remove it I get: >> >> java

Re: Can anyone explain the leading "r" in OGNL list syntax?

2007-08-29 Thread james_carbon5
ve not written much freemarker, but I'd bet the r is a typo. The > important difference between the two tags you have are the single quotes > around the value of the list attribute. > > james_carbon5 wrote: >> <@s.select ... list=#{"foo":"foo stuff"

Can anyone explain the leading "r" in OGNL list syntax?

2007-08-29 Thread james_carbon5
I was trying to figure out how to use a static map, that I created in a freemarker template, to populate a drop down list, a la: <@s.select ... list=#{"foo":"foo stuff","bar":"bar stuff"} /> After an hour or so of banging my head into my keyboard I found http://www.jroller.com/cdaniluk/entry/we