The Common-Controls Tag Library


Generates a html base element.
The Base element allows the URL of the document itself to be set. It is especially useful in allowing browsers to determine any partial URL's, or relative paths. The tag can be used without any attributes.

Body content: JSP
Tag class: BaseTag

[ Syntax ]

Standard Syntax
[ contextPath = "String" ]
[ host = "String" ]
[ port = "String" ]
...Body Content...


[ Attributes ]

contextPathString Root of the web application.  
hostString The host.  
portString The port number.  

[ Example ]

The base element should appear within the bounds of the head element.

<%@ taglib uri=""   prefix="util" %>


   <%--  StyleSheets  --%>
   <link href="app/css/default.css" rel="stylesheet" type="text/css"/>

   <%--  Framework Includes  --%>
   <util:jsp directive="includes"/>
<body leftmargin="0" rightmargin="0" onLoad="init();">