info.magnolia.cms.taglibs.util
Class PoweredByTag
java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
info.magnolia.cms.taglibs.util.PoweredByTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag
public class PoweredByTag
- extends javax.servlet.jsp.tagext.SimpleTagSupport
A simple tag which can display the version and edition of the running Magnolia instance.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
Method Summary |
void |
doTag()
|
void |
setPattern(String pattern)
Sets a different message pattern than the default. |
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 |
PoweredByTag
public PoweredByTag()
setPattern
public void setPattern(String pattern)
- Sets a different message pattern than the default. This uses the java.text.MessageFormat syntax.
Available parameters are:
{0} Magnolia edition
{1} Magnolia version
{2} Magnolia build number or date
{3} Magnolia product url
{4} Magnolia provider name
{5} Magnolia provider address
{6} Magnolia provider email
Warning: since this is using java.text.MessageFormat, you need to escape single quotes, for example:
"I''m showing my Magnolia love by using the {0} version {1}."
doTag
public void doTag()
throws javax.servlet.jsp.JspException,
IOException
- Specified by:
doTag
in interface javax.servlet.jsp.tagext.SimpleTag
- Overrides:
doTag
in class javax.servlet.jsp.tagext.SimpleTagSupport
- Throws:
javax.servlet.jsp.JspException
IOException
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.