java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.struts.taglib.html.BaseHandlerTag
com.RuntimeCollective.webapps.tag.PlainTextLinkTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class PlainTextLinkTag
- extends org.apache.struts.taglib.html.BaseHandlerTag
a custom jsp tag that creates a link to the Runtime Betsie server or another
Betsie server if specified in web.xml or the tag. You can also define the
hostname of the site using your link either directly to the tag or in the web.xml
Betsie is an opensource accessability tool that uses perl to render a plaintext
version of your site suitable for text to speach web browsing. You can learn more by
visiting http://betsie.sourceforge.net/
Takes the following attributes
-
betsieDomain - Where the Betsie server is running. If not set checks web.xml for a parameter, if thats not set uses the default Runtime Betsie server domain (http://betsie.runtime-collective.com/cgi-bin/parser.pl). betsieDomain should include the scheme (http://) [Optional].
-
hostname - This is the hostname of the server that needs to use Betsie. If not set will check the web.xml, if not set there will use HttpServletRequest getServerName() and getServerPort() to build the hostname. Hostnames in the tag or web.xml should not include the scheme (http://) [optional]
-
linkText - The link text that the tag will display on the page. If not set uses default "Plain text" [Optional].
- Version:
- $Id: PlainTextLinkTag.java,v 1.18 2003/09/30 15:13:18 joe Exp $
| Methods inherited from class org.apache.struts.taglib.html.BaseHandlerTag |
doErrorsExist, getAccesskey, getAlt, getAltKey, getBundle, getDisabled, getElementClose, getErrorKey, getErrorStyle, getErrorStyleClass, getErrorStyleId, getIndexed, getIndexValue, getLocale, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getReadonly, getStyle, getStyleId, getTabindex, getTitle, getTitleKey, isXhtml, lookupProperty, message, prepareAttribute, prepareEventHandlers, prepareFocusEvents, prepareIndex, prepareKeyEvents, prepareMouseEvents, prepareName, prepareOtherAttributes, prepareStyles, prepareTextEvents, setAccesskey, setAlt, setAltKey, setBundle, setDisabled, setErrorKey, setErrorStyle, setErrorStyleClass, setErrorStyleId, setIndexed, setLocale, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleId, setTabindex, setTitle, setTitleKey |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hostname
protected java.lang.String hostname
- the hostname of the server that needs to use Betsie.
betsieDomain
protected java.lang.String betsieDomain
- the betsieDomain, where the betsie server is running.
linkText
protected java.lang.String linkText
- the linkText from the tag.
styleClass
protected java.lang.String styleClass
- the styleClass from the tag.
AHREF
public static final java.lang.String AHREF
- See Also:
- Constant Field Values
SLASH
public static final java.lang.String SLASH
- See Also:
- Constant Field Values
ENDQUOTE
public static final java.lang.String ENDQUOTE
- See Also:
- Constant Field Values
CLASSEQUAL
public static final java.lang.String CLASSEQUAL
- See Also:
- Constant Field Values
ENDTAG
public static final java.lang.String ENDTAG
- See Also:
- Constant Field Values
ENDA
public static final java.lang.String ENDA
- See Also:
- Constant Field Values
BETSIE_DOMAIN_DEFAULT
public static final java.lang.String BETSIE_DOMAIN_DEFAULT
- See Also:
- Constant Field Values
BETSIE_QUERY_STRING_START
public static final java.lang.String BETSIE_QUERY_STRING_START
- See Also:
- Constant Field Values
PROCESS_BETSIE_ACTION_PATH
public static final java.lang.String PROCESS_BETSIE_ACTION_PATH
- See Also:
- Constant Field Values
BETSIE_DOMAIN_PARAM_KEY
public static final java.lang.String BETSIE_DOMAIN_PARAM_KEY
- See Also:
- Constant Field Values
LINKTEXT_DEFAULT
public static final java.lang.String LINKTEXT_DEFAULT
- See Also:
- Constant Field Values
QUESTION
public static final java.lang.String QUESTION
- See Also:
- Constant Field Values
DOTDO
public static final java.lang.String DOTDO
- See Also:
- Constant Field Values
SEMICOL
public static final java.lang.String SEMICOL
- See Also:
- Constant Field Values
HTTP
public static final java.lang.String HTTP
- See Also:
- Constant Field Values
PlainTextLinkTag
public PlainTextLinkTag()
getHostname
public java.lang.String getHostname()
- get the hostname from the tag.
setHostname
public void setHostname(java.lang.String hostname)
- set the hostname from the tag.
getBetsieDomain
public java.lang.String getBetsieDomain()
- get the betsieDomain from the tag.
setBetsieDomain
public void setBetsieDomain(java.lang.String betsieDomain)
- set the betsieDomain.
getLinkText
public java.lang.String getLinkText()
- get the linkText from the tag.
setLinkText
public void setLinkText(java.lang.String linkText)
- set the linkText.
getStyleClass
public java.lang.String getStyleClass()
- get the styleClass from the tag.
setStyleClass
public void setStyleClass(java.lang.String styleClass)
- set the styleClass.
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Description copied from class:
javax.servlet.jsp.tagext.BodyTagSupport
- Default processing of the start tag returning EVAL_BODY_BUFFERED.
release
public void release()
- Description copied from class:
org.apache.struts.taglib.html.BaseHandlerTag
- Release any acquired resources.
computeBetsieLink
public static java.lang.String computeBetsieLink(javax.servlet.http.HttpServletRequest theRequest,
java.lang.String theBetsieDomain,
java.lang.String theHostname)
- Compute the link to Betsie for the current page of a request.