• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Trying to get CSS dynamically for multi client

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Our project uses Trinidad and I am trying to fetch CSS dynamically from database. The project is multiclient project and each client has its own logo, color, style and size. So we have planned to get the .css from DB.

The project would use only one skin and the css mentioned in the trinidad-skin.xml would point to a Servlet (this servlet fetches css from DB and put the css to stream with content type as text/css). I tried to give the URL as

<style-sheet-name>myProject/MyServletName</style-sheet-name> instead of
<style-sheet-name>css/myskin.css</style-sheet-name>


But I am getting XML Parser error and the <style-sheet-name> seems, it requires .css as the link.

The other way I am trying is to give EL in <style-sheet-name> tag name. The client name is passed in the URL. So based on that it will pick client1CSS.css, client2CSS.css, etc. Please let me know how to use Expression Language (EL). Please help me get client name from URL. I tried giving #{} to get it from URL / Bean class. But there is some problem retrieving the value.

Could any one help me how to on the above doubts / get the css dynamically.

Thanks.
 
Water proof donuts! Eat them while reading this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic