org.jasig.resourceserver.utils.taglib
Class ResourceIncludeTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.jasig.resourceserver.utils.taglib.ResourceIncludeTag
- All Implemented Interfaces:
- Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class ResourceIncludeTag
- extends javax.servlet.jsp.tagext.TagSupport
Determines if the resource serving webapp is deployed via a cross-context lookup using
ServletContext.getContext(String). If it is the resource service webapp context
path is used as the base of the resource URL, if it is not the current webapp's context
path is used. The default context path for the resource serving webapp is defined by
DEFAULT_RESOURCE_CONTEXT.
init-params:
resourceContextPath - Overrides the default servlet context path for the resource serving webapp.
- Version:
- $Revision: 21633 $
- See Also:
- Serialized Form
| 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 |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE_CONTEXT_INIT_PARAM
public static final String RESOURCE_CONTEXT_INIT_PARAM
- See Also:
- Constant Field Values
DEFAULT_RESOURCE_CONTEXT
public static final String DEFAULT_RESOURCE_CONTEXT
- See Also:
- Constant Field Values
_var
protected String _var
_url
protected String _url
_resource
protected String _resource
ResourceIncludeTag
public ResourceIncludeTag()
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
getVar
public String getVar()
setVar
public void setVar(String var)
getValue
public String getValue()
setValue
public void setValue(String resource)
getUrl
public String getUrl()
Copyright © 2010 Jasig. All Rights Reserved.