Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Struts
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Struts section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 29th, 2006, 04:12 PM
Registered User
 
Join Date: May 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Theming in Struts

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.







Similar Threads
Thread Thread Starter Forum Replies Last Post
struts actions package: "struts", other packages? ojasrege Struts 1 July 21st, 2007 06:02 AM
Struts [email protected] Struts 2 November 13th, 2006 07:10 AM
about struts kishore.dyn Struts 4 August 8th, 2006 01:28 AM
Dynamicaly Theming Master Pages pro-logic ASP.NET 2.0 Professional 2 January 18th, 2006 11:06 PM
How to get upgraded from Struts 1.1 to struts 1.2. [email protected] Struts 0 January 3rd, 2006 04:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.