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 information
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 refer
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 NullPoint
If you are talking about per Java package, not that I know of. If you mean
per Struts package, same thing. But if you mean per jar file, there is a
way. If you set your contextConfigLocation to something like
"WEB-INF/applicationContext.xml,classpath*:pluginContext.xml" then Spring
will load you
As far as I know there's nothing in the Spring plugin that currently
provides that functionality.
Dave
2010/11/12 Josep María Formentí Serra :
> Hi,
>
> We are working in a new project using struts2 + spring + hibernate. We have
> many packages defined in struts.xml, one for module. We have confi
Hi,
We are working in a new project using struts2 + spring + hibernate. We have
many packages defined in struts.xml, one for module. We have configured
spring using this guide:
http://struts.apache.org/2.0.14/docs/spring-plugin.html, where you define
one spring context (using the context param: co
6 matches
Mail list logo