tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@tcsi.com (David M. Karr)
Subject Re: server side includes Vs TagLibs
Date Thu, 05 Oct 2000 18:31:48 GMT
>>>>> "Justyna" == Justyna Horwat <Justyna.Horwat@eng.sun.com> writes:
  Justyna> It depends on what your doing. SSIs allow you to include outputs from
  Justyna> servlets at certain points in the page. You can do simple inclusions to a
  Justyna> primarily static page.

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

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

  Justyna> Justyna
  Justyna> < horwat@eng.sun.com >

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

Perhaps one simple example of the value of JSP/Taglibs over SSI would
be the "xsl:apply" tag (from the Apache general "taglibs" taglib),
which at page request time, allows us to process an XML file with an
XSL stylesheet to present truly dynamic content.

-- 
===============================================================================
David M. Karr     ; dkarr@tcsi.com  ; w:(425)487-8312 ; TCSI & Best Consulting
Software Engineer ; Unix/Java/C++/X ; BrainBench CJ12P (#12004)


Mime
View raw message