> >If you're determined to store the stylesheets in the database, then >Turbine's typical url stuff should help you. > >Turbine uses the url for variable info, originally so that search >engines would index the dynamically generated pages. > >Create a screen that will render a given stylesheet when you hit this >url: >http://server:8080/myapp/servlet/myapp/screen/stylesheet/id/1543.css >(look at this message in the archive for suggestions about >creating the >screen -- in particular you'll need to set the content-type to >'text/css): >http://nagoya.apache.org:8080/eyebrowse/ReadMsg?listName=turbine- >[EMAIL PROTECTED]&msgNo=3353) > >Then you can use that in the <LINK> tag: ><LINK href="${styleSheetUrl}" rel="stylesheet" type="text/css"> > >And the browser shouldn't know the difference between a static >stylesheet and the dynamically generated one. So the browser cache >should work as expected. > >Hope that helps. >-Eric >
Thank a lot for the info. I think it will help me a long way. Great idea about creating a screen. I think this is exectly what I'm looking for. I think I'll try the database approach, integrating the stylesheets into the database will create a lot of spin of-effects. I think you'd understand if I showed you the database structure, but I think it's irrelevant for the topic. BTW, why do you think storing the stylesheets in directories is a better idea? Less overhead? Easier or more flexible whenever someone wants to make changes to them? Or do you have any other reasons? Best regards Erik Beijnoff
