org.apache.struts.taglib.template

Class InsertTag


public class InsertTag
extends TagSupport

This is the tag handler for <template:insert>, which includes a template. The tag's body content consists of <template:put> tags, which are accessed by <template:get> in the template.

Version:
$Revision: 1.16 $ $Date: 2002/11/12 03:56:09 $

Author:
David Geary

Field Summary

private ContentMap
map
Each insert tag has a map of content.
private String
template
The application-relative URI of the template.

Method Summary

int
doEndTag()
Deprecated. Use Tiles instead.
int
doStartTag()
Deprecated. Use Tiles instead.
ContentMap
getContentMap()
Deprecated. Use Tiles instead.
String
getTemplate()
Deprecated. Use Tiles instead.
void
put(String name, Content content)
Deprecated. Use Tiles instead.
void
release()
Deprecated. Use Tiles instead.
private void
saveException(Throwable exception)
Deprecated. Use Tiles instead.
void
setTemplate(String template)
Deprecated. Use Tiles instead.

Field Details

map

private ContentMap map
Each insert tag has a map of content.


template

private String template
The application-relative URI of the template.

Method Details

doEndTag

public int doEndTag()
            throws JspException

Deprecated. Use Tiles instead.

Process the end tag by including the template.


doStartTag

public int doStartTag()
            throws JspException

Deprecated. Use Tiles instead.

Process the start tag by pushing this tag's map onto the content map stack. See org.apache.struts.taglib.template.util.ContentMapStack.


getContentMap

public ContentMap getContentMap()

Deprecated. Use Tiles instead.

Get the map attribute.


getTemplate

public String getTemplate()

Deprecated. Use Tiles instead.

Get the template attribute.


put

public void put(String name,
                Content content)

Deprecated. Use Tiles instead.

This method is a convenience for <template:put> tags for putting content into the map.


release

public void release()

Deprecated. Use Tiles instead.

Reset member values for reuse. This method calls super.release(), which invokes TagSupport.release(), which typically does nothing.


saveException

private void saveException(Throwable exception)

Deprecated. Use Tiles instead.

Save the specified exception in request scope if there is not already one present.

Parameters:
exception - Exception to be conditionally saved


setTemplate

public void setTemplate(String template)

Deprecated. Use Tiles instead.

Set the template attribute.


Copyright B) 2000-2005 - Apache Software Foundation