• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trying to get CSS dynamically for multi client

java kris
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

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.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic