| java.lang.Object javax.servlet.jsp.tagext.TagSupport org.apache.struts.taglib.html.BaseTag
All known Subclasses: org.apache.strutsel.taglib.html.ELBaseTag,
BaseTag | public class BaseTag extends TagSupport (Code) | | Renders an HTML element with an href attribute pointing to the
absolute location of the enclosing JSP page. This tag is only valid when
nested inside a head tag body. The presence of this tag allows the browser
to resolve relative URL's to images, CSS stylesheets and other resources
in a manner independent of the URL used to call the ActionServlet.
version: $Rev: 471754 $ $Date: 2005-09-20 02:29:01 -0400 (Tue, 20 Sep 2005) version: $ |
ref | protected String ref(Code) | | The reference to which the base will created.
|
server | protected String server(Code) | | The server name to use instead of request.getServerName().
|
target | protected String target(Code) | | The target window for this base reference.
|
getRef | public String getRef()(Code) | | Gets the reference to which the base will be created
|
getServer | public String getServer()(Code) | | Returns the server.
String |
renderBaseElement | protected String renderBaseElement(String scheme, String serverName, int port, String uri)(Code) | | Render a fully formed HTML <base> element and return it as a
String.
Parameters: scheme - The scheme used in the url (ie. http or https). Parameters: serverName - Parameters: port - Parameters: uri - The portion of the url from the protocol name up tothe query string. String An HTML <base> element. since: Struts 1.1 |
setRef | public void setRef(String ref)(Code) | | Sets the reference to which the base will be created.
Parameters: ref - Either "page" to render the base as the jsp path located, or"site" as the application's context |
setServer | public void setServer(String server)(Code) | | Sets the server.
Parameters: server - The server to set |
|
|