aspose file tools
The moose likes JSF and the fly likes Trying to get CSS dynamically for multi client Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Trying to get CSS dynamically for multi client" Watch "Trying to get CSS dynamically for multi client" New topic
Author

Trying to get CSS dynamically for multi client

java kris
Greenhorn

Joined: May 31, 2009
Posts: 1
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trying to get CSS dynamically for multi client
 
Similar Threads
Question regarding servlet-mapping in web.xml
How to call Servlet from HTML
using different skins/styles with trh:stylesheet
JSP context problem
proper format display from mysql