Interface to be implemented by any tag that wishes to contain a wiki:param tag for passing dynamic name-value pairs.
Just provides iteration support for AdminBeanIteratorTag
Provides an iterator for all AdminBeans of a given type.
Just provides the TEI data for AttachmentsIteratorTag.
Iterates through the list of attachments one has.
Writes the author name of the current page, including a link to that page, if that page exists.
Writes the jspwiki baseURL.
Implement a "breadcrumb" (most recently visited) trail.
Extends the LinkedList class to provide a fixed-size queue implementation
Provides a nice calendar.
A companion to CheckLogTag.
Checks whether the page is locked for editing.
Includes body, if the request context matches.
Does a version check on the page.
Writes a comment link.
Returns the app name.
Is used as a "super include" tag, which can include the proper context based on the wikicontext.
Sets or gets Cookie values.
Writes a diff link.
Writes an edit link.
Just provides the TEI data for EditorIteratorTag.
Iterates through editors.
Creates an editor component with all the necessary parts to get it working.
Outputs links to all the site feeds and APIs this Wiki/blog supports.
Includes body if page has attachments.
Just provides the TEI data for HistoryIteratorTag.
Iterates through tags.
If there have been no search results, then outputs the body text.
This tag is used to include any programmatic includes into the output stream.
Includes an another JSP page, making sure that we actually pass the WikiContext correctly.
Writes difference between two pages using a HTML table.
Renders WikiPage content.
Iterates through tags.
Provides a generic link tag for all kinds of linking purposes.
Writes a link to a parent of a Wiki page.
Writes a link to a Wiki page.
Returns or clears the current messages associated with the user's wiki session.
Writes the version number of the next version of the page.
Includes the body in case there is no such page available.
Writes the modification date of the page, formatted as specified in the attribute "format".
Includes the body in case the set page does exist.
Writes a link to the Wiki PageInfo.
Returns the currently requested page name.
Returns the currently requested page or attachment size.
Includes the body, if the current page is of proper type.
Writes the version of the current page.
ParamTag submits name-value pairs to the first enclosing ParamHandler instance.
Returns the parent of the currently requested page.
Tells whether the user in the current wiki context possesses a particular permission.
Inserts any Wiki plugin.
Outputs the version number of the previous version of this page.
Provides easy access to TemplateManager.addResourceRequest().
Writes an image link to a JSPWiki RSS file.
Just provides the TEI data for IteratorTag.
Iterates through Search result results.
Outputs the size of the search results list, if it contains any items.
Includes the body content, if there are any search results.
Calculate pagination string.
Generates tabbed page section: container for the Tab tag.
Generates single tabbed page layout.
Returns the currently used template.
Converts the body text into HTML content.
Writes a link to the upload page.
Includes the content if an user check validates.
Returns the current user name, or empty, if the user has not been validated.
Returns user profile attributes, or empty strings if the user has not been validated.
Returns the value of an Wiki variable.
This is a class that provides the same services as the WikiTagBase, but this time it works for the BodyTagSupport base class.
Root class for different internal wiki links.
Base class for JSPWiki tags.
This package contains a diverse set of JSP tags which are used in the template pages.
A typical problem for many tag developers is that many web containers pool tags, i.e. the tag is not released after doEndTag(), but put into a pool, from which it can be invoked again. This is highly efficient, as you don't need to instantiate the tag again.
The problem, however, is that when your tag is put back into the pool, it still retains all the internal references, i.e. none of the member fields are cleared. This means there can be dangling references to things which will take a lot of memory. In JSPWiki's case, the WikiContext is a good example: it can actually contain quite a lot of stuff accumulated during it's life time, and therefore it's important for memory use that all references are cleared.
Unfortunately, the "easy" solution of implementing your custom release handler
Tag.release() does not help, since it is called only when the tag
is truly and completely released from the pool. So, as long as the tag sits
in the pool, release() is not called, and your references keep on dangling like wet
spaghetti off the balcony.
Neither can you trust e.g. doEndTag() being called every time, since e.g. if there is an exception, doEndTag() is never called.
The correct way to do reference cleaning is to implement the
interface, where the
doFinally() method is called every time the tag
has been finished with and prior to it being put back into the pool. Most JSPWiki
base tag classes
implement the TryCatchFinally
interface, which means that any class subclassed from them also allows has those methods.
Check out the javadocs for the tags for more info!
Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.