[Opensource] Faces...
Mike Traum
mtraum at cirnetwork.org
Wed Sep 11 11:25:31 PDT 2002
If you just want to change fonts, colors, and positioning, CSS would be a
perfect choice - requiring only 1 jsp per page with a CSS file per page.
If you need to do something more advanced, an easier method than XSL
(although less flexible) could be to have separate jsp's which simply define
colors, etc for each face, and then use the <%@ include jsp tag to include
any of your presentation logic which is common among the different faces.
Mike
-----Original Message-----
From: opensource-admin at jcorporate.com
[mailto:opensource-admin at jcorporate.com]On Behalf Of Itamar Almeida de
Carvalho
Sent: Tuesday, September 10, 2002 8:23 PM
To: Expresso Opensource List
Subject: [Opensource] Faces...
If I want one of my applications to have two different "faces", but same
functionality (changing only images, positioning, fonts, colors),
somebody has some idea how to do it in a simple way using Expresso?
We are using JSPs with the Expresso taglibs, but with it if I want a
different "face", I need to create another set of JSPs, but the
"inteligence" in the JSPs will be duplicated (very bad to maintenance).
I wonder if using Jakarta Velocity with "templates" will be a good idea,
but I don't know how it works in detail, and how it integrates with
Expresso. Another idea that we have is to try XML/XSL (maybe with
Cocoon).
Somebody had this problem before?
Best regards,
--
Itamar Almeida de Carvalho
Desenvolvimento de Sistemas
itamar at oktiva.com.br - (+85) 281-2223
Oktiva Telecomunicações e Informática Ltda
http://www.oktiva.com.br
More information about the Opensource
mailing list