I'm trying to drop my dependency on tables for layout and move to CSS. I have a struts project using modules and would like to tie a CSS file to each module. So, i have my tiles classicLayout.jsp template and tiles-def.xml definitions and have to use a different classicLayout(1-4) for every module because I can't figure out how to use one layout template and multiple definitions by passing in a CSS file name on an insert. The reason is because the file name has to be rewritten for url encoding:
I want to be able to add to my Layout page something like the following:
and be able to declare the "cssFile" by an insert tag.
jan [ October 17, 2006: Message edited by: Jan Groth ]
Joined: Apr 03, 2003
I'm not familiar with the @import label. I'm assuming j2se5, right? I'm not able to find documentation on it, mostly because google doesn't include the '@' in the search. How does the url rewrite occur? You are using a simple html <style> tag and there is no implicit struts based url rewriting going on.
Joined: Feb 03, 2004
wrong. no java 5, simple css import command for styles.