org.apache.struts.taglib.html

Class BaseTag


public class BaseTag
extends TagSupport

Renders an HTML
Version:
$Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $

Field Summary

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.

Method Summary

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)

Field Details

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.

Method Details

doStartTag

public int doStartTag()
            throws JspException
Process the start of this tag.

getServer

public String getServer()
Returns the server.
Returns:
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.
Parameters:
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.
Returns:
String An HTML <base> element.
Since:
Struts 1.1

setServer

public void setServer(String server)
Sets the server.
Parameters:
server - The server to set

setTarget

public void setTarget(String target)

Copyright B) 2000-2007 - The Apache Software Foundation