How to have dynamic css files depending on struts session variable
- by MichaelMcCabe
I have a webpage in which i want the css file to be the same name as a session variable I have set.
For example;
If the session variable was "blue", i want the page to load the css file blue.css.
I tried something below which didnt work, and I'm now stuck. My knowledge of struts is very limited.
<LINK rel="stylesheet" type="text/css" href="<html:rewrite page='/css/<c:out value="${brand}"/>.css'/>">