Hi all,
Currently, I develop a system similar to a CMS, using Struts, Tiles, Spring & Hibernate. Like a CMS it has a zone where user can customize the appearance with themes. These themes are defined to be like Mambo or Joomla ones. In this way, each theme consists of a template (in html, jsp, or sth like that) wich defines the page layout and several css's, images as needed.
The page layout could be like this:
Code:
<html>
<title>My first page</title>
<body>
Hello world
<myTagLibrary:insertContent />
Something more
Some footer
</body>
</html>
where myTagLibrary:insertContent renders the content requested. Later in the struts-config file I could have:
Code:
<action path="/cms/content" type="com.museum4j.displayContent">
<forward name="success" path="????" />
</action>
The problem arises when I try to forward to a Tile, jsp, or any other "thing" that is varible depending on the current theme used.
¿How can I solve it? ¿Have you ever face off this problem or something similar?
Thanks very much.