net.sourceforge.jsurveyor.tags
Class MainDesignTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bynet.sourceforge.jsurveyor.tags.MainDesignTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class MainDesignTag
extends javax.servlet.jsp.tagext.TagSupport

Custom tag that inserts the main design on a page

Version:
1.0
Author:
Claus Methmann Christensen, Anders Spliid Hansen, Esben Iversen Hansen, Lars H Jensen, Marcus Overheu, Thomas Ramdal, Peter Thomsen
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
MainDesignTag()
           
 
Method Summary
 int doEndTag()
          Automatically called when closing the tag.
 int doStartTag()
          Automatically called when starting the tag.
 void setTitle(java.lang.String title)
          Automatically captures the attribute title when using the tag.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainDesignTag

public MainDesignTag()
Method Detail

setTitle

public void setTitle(java.lang.String title)
Automatically captures the attribute title when using the tag.

Parameters:
title - String

doStartTag

public int doStartTag()
Automatically called when starting the tag. Inserts the first part of the design and continues to evaluate any included body with the tag.

Returns:
int
See Also:
Tag.doStartTag()

doEndTag

public int doEndTag()
Automatically called when closing the tag. Inserts the second part of the design after evaluating the body of the tag

Returns:
int
See Also:
Tag.doEndTag()