nl.gx.webmanager.taglib.edit
Class GetConfigurationEntryTag

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

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

This tag returns a configuration entry from the configuration management. If the 'var' parameter is present, the result will be stored in the page context under that identifier, otherwise, the result will be written to the output. This tag takes 2 parameters:

path
The path to the configuration entry (e.g. application_settings.smtp_host)
multiple
When multiple is set to true, this tag returns an array of values (optional, default false).
var
The name of the property under which the result should be stored in the pageContext (optional)
Example: <wmedit:render var="showobject_alias" path="system_constants.showobject_servlet_uri" />

Author:
bartk

Constructor Summary
GetConfigurationEntryTag()
           
 
Method Summary
 void doTag()
           
 java.lang.Boolean getMultiple()
          Returns whether multiple values should be returned by this tag.
 java.lang.String getPath()
          Returns the path pointing to the configuration entry to be returned by this tag.
 java.lang.String getVar()
          Returns the identifier under which the configuration entry should be stored in the pageContext .
 void setMultiple(java.lang.Boolean multiple)
          Sets whether multiple values should be returned by this tag.
 void setPath(java.lang.String path)
          Sets the path to the configuration entry that should be returned by this tag.
 void setVar(java.lang.String var)
          Sets the identifier of the optional entry in the pageContext under which the configuration entry should be stored.
 
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

GetConfigurationEntryTag

public GetConfigurationEntryTag()
Method Detail

getPath

public java.lang.String getPath()
Returns the path pointing to the configuration entry to be returned by this tag.

Returns:
the path pointing to the configuration entry to be returned by this tag.

setPath

public void setPath(java.lang.String path)
Sets the path to the configuration entry that should be returned by this tag.

Parameters:
path -

getMultiple

public java.lang.Boolean getMultiple()
Returns whether multiple values should be returned by this tag.

Returns:
whether multiple values should be returned by this tag

setMultiple

public void setMultiple(java.lang.Boolean multiple)
Sets whether multiple values should be returned by this tag.

Parameters:
multiple - multiple

getVar

public java.lang.String getVar()
Returns the identifier under which the configuration entry should be stored in the pageContext .

Returns:
the name of the optional entry in the pageContext under which the configuration entry should be stored.

setVar

public void setVar(java.lang.String var)
Sets the identifier of the optional entry in the pageContext under which the configuration entry should be stored.

Parameters:
var -

doTag

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


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