|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.apache.struts.taglib.html.BaseTag
public class BaseTag
Renders an HTML
| Field Summary | |
|---|---|
protected static MessageResources |
messages
The message resources for this package. |
protected java.lang.String |
ref
The reference to which the base will created. |
protected java.lang.String |
REF_PAGE
|
protected java.lang.String |
REF_SITE
|
protected java.lang.String |
server
The server name to use instead of request.getServerName(). |
protected java.lang.String |
target
The target window for this base reference. |
| 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 |
| Constructor Summary | |
|---|---|
BaseTag()
|
|
| Method Summary | |
|---|---|
int |
doStartTag()
Process the start of this tag. |
java.lang.String |
getRef()
Gets the reference to which the base will be created |
java.lang.String |
getServer()
Returns the server. |
java.lang.String |
getTarget()
|
protected java.lang.String |
renderBaseElement(java.lang.String scheme,
java.lang.String serverName,
int port,
java.lang.String uri)
Render a fully formed HTML <base> element and return it as a String. |
void |
setRef(java.lang.String ref)
Sets the reference to which the base will be created. |
void |
setServer(java.lang.String server)
Sets the server. |
void |
setTarget(java.lang.String target)
|
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, doEndTag, 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 |
| Field Detail |
|---|
protected static MessageResources messages
protected final java.lang.String REF_SITE
protected final java.lang.String REF_PAGE
protected java.lang.String server
protected java.lang.String target
protected java.lang.String ref
| Constructor Detail |
|---|
public BaseTag()
| Method Detail |
|---|
public java.lang.String getRef()
public void setRef(java.lang.String ref)
ref - Either "page" to render the base as the jsp path located, or
"site" as the application's contextpublic java.lang.String getTarget()
public void setTarget(java.lang.String target)
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException - if a JSP exception has occurred
protected java.lang.String renderBaseElement(java.lang.String scheme,
java.lang.String serverName,
int port,
java.lang.String uri)
scheme - The scheme used in the url (ie. http or https).serverName - port - uri - The portion of the url from the protocol name up to
the query string.
public java.lang.String getServer()
public void setServer(java.lang.String server)
server - The server to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||