[Opensource] Réf. : [Opensource] Faces...
Raul DAVIDOVICH
R.DAVIDOVICH at caconcology.com
Wed Sep 11 01:14:24 PDT 2002
I don't know how many "intelligence" you have in your JSPs, but in a good
design, normally there shouldn't be any.. all the "intelligence" should be
in the controller and the model, and just tags for showing things in the
pages.. this is specially true within expresso, since you "build" your
inputs and outputs in the controller, and you have an easier way to process
the data. If your "intelligence" is done in JavaScript, personnally, I
would advice you not to do it.. I had very bad experiences regarding that,
since you depend on clients ability to process it the way you expect it..
it's true, it may be faster, but it's unsafer..
For having several "faces", a very good way is to use XML for the output
(automatically generated by expresso), and then process it with XSL
stylesheets.. this will give you a lot of flexibility (who can tell you
that in two months, your client will want two other sets of "faces".. with
xml is just two stylesheets, with JSPs it will be two new sets)
Hope ths helps and clarifies you a bit
best regards
---------------------------------------------------
Raul Davidovich
Responsable Informatique
Cvitkovic & Associés Consultants
(33) 1 45 15 40 68
(33) 1 45 15 40 41 Fax
-------------------------------------------------------
http://www.caconcology.com
|---------+------------------------------->
| | Itamar Almeida de |
| | Carvalho |
| | <itamar at oktiva.com.b|
| | r> |
| | Envoyé par : |
| | opensource-admin at jco|
| | rporate.com |
| | |
| | |
| | 10/09/2002 22:23 |
| | Veuillez répondre à |
| | opensource |
| | |
|---------+------------------------------->
>-----------------------------------------------------------------------------------------------------------------------------|
| |
| Pour : Expresso Opensource List <opensource at jcorporate.com> |
| cc : |
| Objet : [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
(See attached file: signature.asc)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: =?iso-8859-1?Q?signature.asc?=
Type: application/octet-stream
Size: 240 bytes
Desc: not available
Url : http://mailman.jcorporate.com/pipermail/opensource/attachments/20020911/c3d5395b/iso-8859-1Qsignature-0002.obj
More information about the Opensource
mailing list