Quoting Roberto Nunnari <[EMAIL PROTECTED]>:
> Yes.. I believe that's right, but wouldn't it be great if we were
> able to tell tomcat/struts to keep some static web resources from jar
> files in cache (already decompressed and ready to be sent to
> clients)?

That is exactly the approach we have applied  for our internal JS
libraries. They are packaged as Maven artifacts (see our
maven-jstools-plugin howto at [1]), then those artifacts are used as
dependencies in our web projects. At runtime, the scripts are provided
to the browser and optionally cached and/or gzipped by our
JavascriptDependencyFilter [2], which is available in the webapp by
adding the JSTools plugin as a dependency for it. If you want to
centralize caching in httpd or something, you can also use
JavascriptDependencyFilter for dependency resolution only. Not sure if
struts2 is build with Maven, or whether dojo artifacts are available,
but in any case all this is apache 2 licensed so you can do whatever
with it.

[1] http://dev.abiss.gr/mvn-jstools/js-packaging.html
[2]
http://dev.abiss.gr/mvn-jstools/apidocs/gr/abiss/mvn/plugins/jstools/web/JavascriptDependencyFilter.html

Cheers,

Manos



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

Reply via email to