why would you wan to do that? Packing static content inside a jar is bad by itself (performance hit to read from inside the jar, at least once, in the case of struts...every time you access the resource), letting struts serve static content is also bad, as struts is not designed/optimized for such a task. You will be better off letting the container serve those files. But if you really wan to do that, just drop the content inside a "/static" directory and use the url tag to build a url for it, like:
<s:url var="someCss" value="/static/something.css"/> see http://struts.apache.org/2.x/docs/static-content.html musachy On Fri, Sep 18, 2009 at 8:32 PM, Alex Siman <aleksandr.si...@gmail.com> wrote: > > I see that Struts serve theme files (validation.js, styles.css, ...) from > JAR. How does it do it? > > All I want is to pack all 3rd part web libs like jQuery, YUI, FCKEdtior... > into JARs e.g.: > jquery.jar > yui.jar > ... > > -- > View this message in context: > http://www.nabble.com/How-does-Struts-serve-assets-from-JAR--tp25518288p25518288.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org