Thanx for the link! Indeed, for now I store frameworks into webapp subdir like: my-eclipse-proj/src/webapp/lib/fckeditor/2.6.4.1 my-eclipse-proj/src/webapp/lib/jquery/1.3.2 my-eclipse-proj/src/webapp/lib/jquery-ui/1.7.2 my-eclipse-proj/src/webapp/lib/yui/2.7.0b and so on...
But I have some problems with this: - if I use "search/replace" through my project, I must to exclude "src/webapp/lib" - boring; - eclipse annoy me about error in HTML markup of fckeditor's sources; - there a lot of files (of these frameworks) to commit to my project repo. It would be nice to pack all these "annoyance" into separate jars, e.g.: my-eclipse-proj/lib/fckeditor-2.6.4.1.jar my-eclipse-proj/lib/jquery-1.3.2.jar my-eclipse-proj/lib/jquery-ui-1.7.2.jar my-eclipse-proj/lib/yui-2.7.0b.jar and so on... and then unpack them on deploy. But how to do this automatically? Ant, Maven? I need elegant solution, better integrated with eclipse. Musachy Barroso wrote: > > 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 > > > -- View this message in context: http://www.nabble.com/How-does-Struts-serve-assets-from-JAR--tp25518288p25521385.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