cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Heiden" <patrickhei...@gmx.de>
Subject Re: Cocoon 2.2: Accessing resources (images, css)
Date Wed, 26 Mar 2008 13:51:46 GMT
> On Mar 26, 2008, at 9:26 AM, Patrick Heiden wrote:
> >> On Mar 26, 2008, at 7:28 AM, Luca Morandini wrote:
> >>> Magnus Haraldsen Amundsen wrote:
> >>>> <map:match pattern="**/images/*.gif">
> >>>> <map:read src="resources/images/{1}.gif" mime-type="image/gif"/>
> >>>> </map:match>
> >>>> I’ve tried it, but hasn’t had any success in getting it working
> >> yet.
> >>>
> >>> It should be {2} (not {1}) since you want to match the name of the
> >>> GIF image and not its path.
> >>
> >> And downside is polluted cache and proxies.
> >>
> >> It's much better to just parameterize XSLT with absolute context  
> >> path,
> >> or with relative path to the context root. Better yet is to move
> >> static resources out to httpd server.
> >>
> >
> > Well, that is right, but what should one do inside development- 
> > environment where there is no such httpd?
> 
> The trick is to configure jetty to behave like apache server and serve  
> your static resources :)
> This way I have both static resources and application itself running  
> under jetty but it works exactly same as production configuration with  
> apache and jetty or tomcat.

Any hints on how to do this actually? Would be very interesting and usefull for jetty-newbie
like me ;)

> 
> Vadim
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message