Package org.appng.api
Interface XMLTaglet
-
- All Known Subinterfaces:
GlobalXMLTaglet
public interface XMLTaglet
Similar to aTaglet
, aXMLTaglet
can be used inside a JSP-Page to embed (static or dynamic) content that is retrieved from aApplication
. But instead of returning aString
directly,XMLTaglet
returns aDataContainer
, which usually is being marshaled to XML and then processed with an XSL stylesheet. Therefore, the taglet-attributexsl
should contain the site-relative path to a XSL-stylesheet. This stylesheet is then being used to transform the XML.
Example (method
refers to bean name of the implementing class):
<%@taglib uri="http://appng.org/tags" prefix="appNG" %> <appNG:taglet application="application-name" method="taglet-name" type="xml"> <param:xsl>meta/xsl/stylesheet.xsl</param:xsl> </appNG:taglet>
- Author:
- Matthias Herlitzius
- See Also:
Taglet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataContainer
processTaglet(Site site, Application application, Request request, Map<String,String> tagletAttributes)
Executes theTaglet
and returns aString
to be embedded at the calling JSP-page.
-
-
-
Method Detail
-
processTaglet
DataContainer processTaglet(Site site, Application application, Request request, Map<String,String> tagletAttributes)
Executes theTaglet
and returns aString
to be embedded at the calling JSP-page.- Parameters:
site
- the currentSite
application
- the currentApplication
request
- the currentRequest
tagletAttributes
- aMap
containing the attributes for theXMLTaglet
- Returns:
- a
DataContainer
to be marshaled to XML and transformed
-
-