[prev in list] [next in list] [prev in thread] [next in thread]
List: struts-user
Subject: Struts 2 / codebehind / SiteMesh : how do I auto-wire static
From: james_carbon5 <james () carbonfive ! com>
Date: 2007-09-27 23:47:22
Message-ID: 12932357.post () talk ! nabble ! com
[Download RAW message or body]
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic