I have an action and freemarker result that includes an external Javascript
file. This javascript files needs to be able to use the getText() method. I
figured I'd name it util.js.ftl so that accessing it directly caused the
sitemesh-freemarker filter to catch it, but this throws a
If the request isn't hitting an action or the S2 interceptor stack and
filter there will not be a value stack... if you just request an ftl it
won't be processed by S2 at all, no?
Options include making an actual S2 request, passing in messages to the JS,
creating a global message object and
My suggestion:
(1)Reference your js file as a static resource.
(2)If the js need some dynamic information from your action.
You can put js variables or hidden tags in your jsp,
and retrieve these variables or hidden tags in your js.
The js can be static outside resource, but [dynamic
3 matches
Mail list logo