thanks at all, my application work fine now, the load of pages took too much time.
Juan Carlos Musachy Barroso wrote: > > Oh, that makes more sense :), in 2.1 there will also be a property to > specify the base url to load dojo, so you could use a different dojo > distribution (served from any url that you like), check the "head" tag > for details on the ajax tags. > > regards > musachy > > On 10/9/07, Jeromy Evans <[EMAIL PROTECTED]> wrote: >> Musachy, I think Juan means in 2.0.9 he want the static resources to be >> served from a directory instead of struts2-core-2.0.9.jar as per the >> optimization recommended at >> http://struts.apache.org/2.x/docs/performance-tuning.html >> >> Juan, first, if you're new to struts 2 you don't need to be concerned >> about this too much. It's one of the last things to worry about as it >> only gives a marginal performance improvement. >> >> Also, in 2.1, you don't need to worry about it because as Musachy >> mentioned the optimized javascript is pre-generated and stored an >> struts-dojo-plugin.jar. >> >> In 2.0.9 by default, any resources with a URL that starts with /struts >> are served by the FilterDispatcher directly from >> struts2-core-2.0.9.jar/org/apache2/struts/static >> The /struts URL is hardcoded in FilterDispatch and can't be changed. >> >> If you set struts.serve.static=false in struts.properties this feature >> will be disabled. You would then need to copy the same resources out of >> the jar to the /struts url of your application which I describe at the >> top of this thread. I recommend this in my instructions because I copy >> a new version of dojo into /struts/dojo without modifying the core jar. >> >> References to /struts are contained throughout the templates. You could >> move dojo to a new location if you wanted to by modifying the >> ajax/head.ftl template but I see no reason to. >> >> The default directory for templates is /template in the classpath. You >> can change this value with the property struts.ui.templateDir=template. >> Again, I see no reason to change it. You can modify or add templates by >> adding a /template directory to your application classpath (this however >> is not an optimisation) >> >> Hope that helps, >> Jeromy Evans >> >> Musachy Barroso wrote: >> > Everything ends up inside a jar, in this case struts-dojo-plugin.jar. >> > It is at compile time, and before packing the jar that the javascript >> > files should be generated. >> > >> > musachy >> > >> > On 10/9/07, Juan Carlos Serrano <[EMAIL PROTECTED]> wrote: >> > >> >> I am newbie in struts 2. >> >> >> >> How do you do that resources are loaded from the directory rather than >> the >> >> jar? I mean, in which configuration file the directory of dojo and >> template >> >> is written? >> >> >> >> thanks a lot >> >> regards >> >> >> >> >> > >> > >> > >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/How-to-improve-dojo-performance-in-Struts-2.0.9-tf4579700.html#a13142251 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]