Class ServerNameTag

java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.content.ServerNameTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class ServerNameTag extends TagSupport
A JSP tag to store the host name in a request attribute.
Since:
6.4
Version:
6.4
Author:
Luke
See Also:
  • Constructor Details

    • ServerNameTag

      public ServerNameTag()
  • Method Details

    • setVar

      public void setVar(String name)
      Sets the request variable name to store the protocol in.
      Parameters:
      name - the variable name
    • doEndTag

      public int doEndTag()
      Saves the server name into a request variable.
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class TagSupport
      Returns:
      EVAL_PAGE always