yeah,but it doesn't hurt much if we develop in a LAN.
just leave the tomcat to do those jobs(use only tomcat as a server or
configure the apache to tell
Apache server to route these jobs to Tomcat) during the development-time ,
we could only use these  extracted files when deploy application to end
users.
copy these files everytime is boring.


2007/8/21, Jeromy Evans <[EMAIL PROTECTED]>:
>
> What you accidentally did is one of the performance improvement
> recommendations on the wiki:
> http://struts.apache.org/2.x/docs/performance-tuning.html
>
> Apache is faster than the FilterDispatcher at serving the static files.
> They're included in the jar for deployment convenience.
> If you extract the files from the jar under /org/apache/struts2/static
> and store them somewhere accessible to apache under the /struts path
> you'll notice marginally better performance as apache serves the
> multitude of small files loaded by dojo.
>
> I find it's a pain to work like this during development-time though.
>
> Andvar Woo wrote:
> > The problem is cause by the apache httpserver.
> > I integrate Tomcat and Apache server together,When i just use
> > Tomcat as the server,it works.I have checked Apache's configure
> > file and found that all gifs and pngs are routed for apache to handle. I
> > comment these commands,then it works again.
> > But that may hurt the performace if you have many pictures contained in
> > static pages. I think the Apache Foundation should
> > pay some attention to banlance the conflict.
> >
> > Speical thanks to *Jeromy Evans.*
> > **
> > 2007/8/21, Andvar Woo <[EMAIL PROTECTED]>:
> >
> >
> >> *in the struts-default.properties  file,the struts.serve.static is set
> >> true;*
> >> *why the icons still couldnot be displayed?*
> >> *What should i do?Any other suggestions?*
> >>
> >>
> >> 2007/8/21, Jeromy Evans <[EMAIL PROTECTED]>:
> >>
> >>> The resources are in the 2.0.9 jar under /org/apache/struts2/static
> >>> They are served from the /struts path by the struts FilterDispatcher
> if
> >>> "struts.serve.static" is true (default)
> >>> If it successfully served the javascript from that path it should have
> >>> served the images.  Perhaps have a look with Firebug.
> >>>
> >>> Andvar Woo wrote:
> >>>
> >>>> Nobody encountered this problem?
> >>>> by the way,I use struts2.0.9. I type the path of the icon in the
> >>>>
> >>> address bar
> >>>
> >>>> of IE,only got a Not found error ? Anyone knows why?
> >>>> Seriously need your help.
> >>>>
> >>>>
> >>>> 2007/8/20, Andvar Woo < [EMAIL PROTECTED]>:
> >>>>
> >>>>
> >>>>> when I use <s:datetimepicker/>, it works well except that  the icons
> >>>>>
> >>> of
> >>>
> >>>>> that
> >>>>> component cannot be displyed.eg. select a date, Up ,Down
> >>>>> these icons do exist in the struts-core.jar. Why they cannot be
> >>>>>
> >>> displayed?
> >>>
> >>>>> Anyone knows? Thanks.
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>
> ------------------------------------------------------------------------
> >>>
> >>>> No virus found in this incoming message.
> >>>> Checked by AVG Free Edition.
> >>>> Version: 7.5.484 / Virus Database: 269.12.1/963 - Release Date:
> >>>>
> >>> 20/08/2007 5:44 PM
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>
> ------------------------------------------------------------------------
> >>
> >> No virus found in this incoming message.
> >> Checked by AVG Free Edition.
> >> Version: 7.5.484 / Virus Database: 269.12.1/963 - Release Date:
> 20/08/2007 5:44 PM
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to