On Tuesday, 25. June 2002 12:58, Ryan Parr wrote:
> control functions. From a separation and maintenance standpoint, posed to a
> group with experience in creating long lived complex sites, would it be
> better to let the taglib module handle determining whether or not to send
> the data or the form, would it be better handled by the XSP itself, or is
> the question ambiguous?
I use XSP mostly for control. Taglibs are nice to encapsulate things with, but
when you encapsulate the control flow of your program, things often get
difficult as soon as you need that functionality again, but a tiny little bit
different. So I usually end up with building blocks below the "Control" level
which I then put together in an XSP page.
compare this:
<mytaglib:form-or-result/>
with this:
if (<mytaglib:is-query-complete/>) {
<h1>Congratulations, you have completed the form!</h1>
} else {
<mytaglib:show-form/>
}
the latter is more typing, but lets you control what happens when the query is
complete or not - maybe you want to redirect him to a help page on the third
miss, but only on this form and not on others, and so on.
--
CU
Joerg
PGP Public Key at http://ich.bin.kein.hoschi.de/~trouble/public_key.asc
PGP Key fingerprint = D34F 57C4 99D8 8F16 E16E 7779 CDDC 41A4 4C48 6F94
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]