com.nurelm.nucontent.controller
Class TagHead

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.nurelm.nucontent.controller.TagHead
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

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

This tag is required before any other NuContent tags. It does the following:

  1. Performs page-level authorization
  2. Sets default template ID. All tags will accept a templateId parameter, but will revert to the default template ID set here.
  3. Adds Page object to request object to be accessed later by other tags
  4. Adds various useful variables to the current pageContext, which are described below

The followng variables are set in the current pageContext. The boolean variables start with "pageIs..." and are either set to "1" if they are true, or not set (null) if false:

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
TagHead()
           
 
Method Summary
 int doEndTag()
          Evaluate rest of page.
 int doStartTag()
          If a pageId exists in the request object, then we use it to obtain the page data.
 java.lang.String getId()
           
 java.lang.String getLockable()
           
 void setId(java.lang.String id)
           
 void setLockable(java.lang.String lockable)
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagHead

public TagHead()
Method Detail

setId

public void setId(java.lang.String id)

getId

public java.lang.String getId()

setLockable

public void setLockable(java.lang.String lockable)

getLockable

public java.lang.String getLockable()

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
If a pageId exists in the request object, then we use it to obtain the page data. If not, we obtain the root page for the contentGroupId.

If the current page is locked to the current user, then place the working copy of the page in the request object.

Returns:
Always returns SKIP_BODY since this is a bodyless tag.
Throws:
javax.servlet.jsp.JspException - Thrown by implemented class.

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Evaluate rest of page.

Returns:
Always return EVAL_PAGE.
Throws:
javax.servlet.jsp.JspException - Thrown by implmented class.