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 the
response. Sitemesh is also applying a decorator "main.ftl". 

I would like to add a static resource directory for javascript that uses the
same Action!Method naming convention. So my project looks something like:

templates /
    foo-bar.ftl
javascript /
    foo-bar.js

If it existed foo-bar.js or the path to foo-bar.js would automatically be
available to my template pages.

Any suggestions on where I should implement this would be appreciated.

Thanks!
-- 
View this message in context: 
http://www.nabble.com/Struts-2---codebehind---SiteMesh-%3A-how-do-I-auto-wire-static-resources--tf4531694.html#a12932357
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to