html:base

 < Day Day Up > 



<html:base />

The <html:base /> tag is used to insert an HTML <base> element, including an href pointing to the absolute location of the hosting JSP page. This tag allows you to use relative URL references, rather than a URL that is relative to the most recent requested resource. The <html:base /> tag has no body and supports two attributes, described in Table 16.1.

Table 16.1: <html:base /> Tag Attributes

Attribute

Description

target

Represents the target attribute of the HTML <base> tag (optional)

server

Identifies a server name to use in the href as opposed to the results of a call to request.getServerName() (optional)

start sidebar

The <html:base /> tag must be nested inside the body of an HTML <head> element.

end sidebar



 < Day Day Up > 



Professional Jakarta Struts
Professional Jakarta Struts (Programmer to Programmer)
ISBN: 0764544373
EAN: 2147483647
Year: 2003
Pages: 183

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net