org.apache.struts.taglib.html
Class BaseTag
TagSupport
org.apache.struts.taglib.html.BaseTag
public class BaseTag
extends TagSupport
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:
- Luis Arias
- David Graham
protected static MessageResources | messages - The message resources for this package.
|
protected String | server - The server name to use instead of request.getServerName().
|
protected String | target - The target window for this base reference.
|
int | doStartTag() - Process the start of this tag.
|
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 | setServer(String server) - Sets the server.
|
void | setTarget(String target)
|
messages
protected static MessageResources messages
The message resources for this package.
server
protected String server
The server name to use instead of request.getServerName().
target
protected String target
The target window for this base reference.
doStartTag
public int doStartTag()
throws JspException
Process the start of this tag.
getServer
public String getServer()
Returns the server.
- String
getTarget
public String getTarget()
renderBaseElement
protected String renderBaseElement(String scheme,
String serverName,
int port,
String uri)
Render a fully formed HTML <base> element and return it as a String.
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.
- String An HTML <base> element.
- Struts 1.1
setServer
public void setServer(String server)
Sets the server.
server
- The server to set
setTarget
public void setTarget(String target)
Copyright B) 2000-2005 - Apache Software Foundation