nl.gx.webmanager.taglib
Class PageMetaDataTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by nl.gx.webmanager.taglib.PageMetaDataTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public class PageMetaDataTag
extends javax.servlet.jsp.tagext.SimpleTagSupport

Implements the wm:pageMetaData tag. Gets a pagemetadata object of the requested type for the current pageversion.
Example of usage:

 < wm:pageMetaData var="keywords" type="keywords" />
 < meta name="keywords" value="${keywords}" />
 

Author:
bartk

Constructor Summary
PageMetaDataTag()
           
 
Method Summary
 void doTag()
           
 java.lang.String getType()
          Return the type of metadata; valid values are "keywords", "description", but new values can also be defined in GX WebManager.
 java.lang.String getVar()
          Return the JSP variable to store the result in.
 void setType(java.lang.String type)
          Sets the type of metadata, valid values are "keywords", "description", but new values can also be defined in GX WebManager.
 void setVar(java.lang.String var)
          Specifies the JSP variable to store the result in.
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageMetaDataTag

public PageMetaDataTag()
Method Detail

doTag

public void doTag()
Specified by:
doTag in interface javax.servlet.jsp.tagext.SimpleTag
Overrides:
doTag in class javax.servlet.jsp.tagext.SimpleTagSupport

getType

public java.lang.String getType()
Return the type of metadata; valid values are "keywords", "description", but new values can also be defined in GX WebManager.

Returns:
the type of metadata

setType

public void setType(java.lang.String type)
Sets the type of metadata, valid values are "keywords", "description", but new values can also be defined in GX WebManager.

Parameters:
type - the fully qualified classname describing the interface requested

getVar

public java.lang.String getVar()
Return the JSP variable to store the result in.

Returns:
name of the variable to store the result in

setVar

public void setVar(java.lang.String var)
Specifies the JSP variable to store the result in.

Parameters:
var - the name of the variable in which to store the result


Copyright © 2007-2011 GX Software BV. All Rights Reserved.