|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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 String |
ref
The reference to which the base will created. |
protected String |
REF_PAGE
|
protected String |
REF_SITE
|
protected String |
server
The server name to use instead of request.getServerName(). |
protected 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. |
String |
getRef()
Gets the reference to which the base will be created |
String |
getServer()
Returns the server. |
String |
getTarget()
|
protected String |
renderBaseElement(String scheme,
String serverName,
int port,
String uri)
Render a fully formed HTML <base> element and return it as a String. |
void |
setRef(String ref)
Sets the reference to which the base will be created. |
void |
setServer(String server)
Sets the server. |
void |
setTarget(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 String REF_SITE
protected final String REF_PAGE
protected String server
protected String target
protected String ref
Constructor Detail |
---|
public BaseTag()
Method Detail |
---|
public String getRef()
public void setRef(String ref)
ref
- Either "page" to render the base as the jsp path located, or
"site" as the application's contextpublic String getTarget()
public void setTarget(String target)
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
- if a JSP exception has occurredprotected String renderBaseElement(String scheme, String serverName, int port, 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 String getServer()
public void setServer(String server)
server
- The server to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |