The Common-Controls Tag Library

<util:base>

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
<util:base
[ contextPath = "String" ]
[ host = "String" ]
[ port = "String" ]
>
...Body Content...

</util:base>
 

[ Attributes ]

AttributeTypeDescriptionReq.RTExp
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="http://www.common-controls.com/cc/tags-util"   prefix="util" %>

<html>
<head>
   <util:base/>

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

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

</body>
</html>