Overview | Library | Tag | Help
| FRAMES NO FRAMES

## html
Tag base

Render an HTML `<base>` Element

Renders an HTML `<base>` element with an `href` attribute pointing to the absolute location of the enclosing JSP page. This tag is valid only when nested inside an HTML `<head>` element.

This tag is useful because it allows you to use relative URL references in the page that are calculated based on the URL of the page itself, rather than the URL to which the most recent submit took place (which is where the browser would normally resolve relative references against).

Tag Information
Tag Class | org.apache.struts.taglib.html.BaseTag
TagExtraInfo Class | None
Body Content | empty
Display Name | None

Attributes
Name | Required | Request-time | Type | Description
target | false | true | `java.lang.String` | The window target for this base reference.
server | false | true | `java.lang.String` | The server name to use instead of request.getServerName().
ref | false | true | `java.lang.String` | The reference from which the base uri will created. Possible values are: `page` - The base uri will be the jsp page location. (default) `site` - The base uri will be the application context path. Since: Struts 1.3

Variables
| No Variables Defined.

Overview | Library | Tag | Help
| FRAMES NO FRAMES

Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.