com.jalios.jcms.taglib
Class UrlTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by com.jalios.jcms.taglib.UrlTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
LinkTag

public class UrlTag
extends javax.servlet.jsp.tagext.BodyTagSupport

Output an url using the given parameters. This tag is not a BodyTag but extends BodyTagSupport to allow the LinkTag to benefit from all the computation provided by the UrlTag.

Since:
jcms-5.7
Version:
$Revision: 38443 $
Author:
Olivier Jaquemet
See Also:
Serialized Form

Field Summary
static String BASE_URL
          Use this request attribute to force a specific base URL to be used in the UrlTag, if this value is specified, it will supercede any other value.
static String REVISION
           
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
 
Constructor Summary
UrlTag()
           
 
Method Summary
 int doAfterBody()
           
 int doEndTag()
           
 int doStartTag()
           
protected  String getBaseURL(javax.servlet.http.HttpServletRequest request)
           
 void printUrl(javax.servlet.http.HttpServletRequest request, Writer out, Locale locale)
          Prints URL using parameter of this tag.
 void setAnchor(String anchor)
           
 void setBaseUrl(String baseURL)
           
 void setData(Data data)
           
 void setId(String id)
           
 void setParamNames(String[] names)
           
 void setParamRemove(String[] remove)
           
 void setParams(String params)
           
 void setParamValues(String[] values)
           
 void setUpdate(boolean update)
           
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values

BASE_URL

public static final String BASE_URL
Use this request attribute to force a specific base URL to be used in the UrlTag, if this value is specified, it will supercede any other value.

See Also:
Constant Field Values
Constructor Detail

UrlTag

public UrlTag()
Method Detail

setData

public void setData(Data data)

setId

public void setId(String id)
Overrides:
setId in class javax.servlet.jsp.tagext.TagSupport

setBaseUrl

public void setBaseUrl(String baseURL)

setUpdate

public void setUpdate(boolean update)

setParamNames

public void setParamNames(String[] names)

setParamValues

public void setParamValues(String[] values)

setParamRemove

public void setParamRemove(String[] remove)

setParams

public void setParams(String params)

setAnchor

public void setAnchor(String anchor)

printUrl

public void printUrl(javax.servlet.http.HttpServletRequest request,
                     Writer out,
                     Locale locale)
              throws Exception
Prints URL using parameter of this tag.

Parameters:
request - the current HttpServletRequest
out - the current JspWriter
locale - the user Locale
Throws:
Exception
Since:
jcms-5.7.0

getBaseURL

protected String getBaseURL(javax.servlet.http.HttpServletRequest request)

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.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
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.BodyTagSupport
Throws:
javax.servlet.jsp.JspException


Copyright © 2001-2010 Jalios SA. All Rights Reserved.