tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justyna Horwat" <>
Subject Re: server side includes Vs TagLibs
Date Thu, 05 Oct 2000 17:51:47 GMT
It depends on what your doing. SSIs allow you to include outputs from
servlets at certain points in the page. You can do simple inclusions to a
primarily static page.

Custom tags are more flexible. They can be described as javabeans with
access to the pagecontext. Tags can be nested, set attributes, and write
directly to the output stream.

So, for instance, if you wanted to apply the model view controller pattern
to your web apps you'd want to separate the controller business logic from
the view data. Custom tags would be one way of separating the business logic
from the jsp view of the data.

< >

----- Original Message -----
> Can anyone suggest any reasons/literature on why Taglibs should be used
> instead of server side includes?
> thanks in advance
> regards

View raw message